Call a function in a shared library: Difference between revisions
Content deleted Content added
smalltalk |
m →{{header|Smalltalk}}: (prova -> test.png) |
||
Line 92:
=={{header|Smalltalk}}==
{{works with|GNU Smalltalk}}
The code tries to load the <tt>fakeimglib</tt> (cfr [[Call function in shared library#C|C example]]); if it succeed, the symbol <tt>openimage</tt> will exist, and will be called; otherwise, it is executed an "internal" code for <tt>openimage</tt>. In this example return code of the function of the library is ignored (<tt>ValueHolder null</tt>)
Line 108 ⟶ 107:
].
ExtLib openimage: '
|