Call a foreign-language function: Difference between revisions

Content added Content deleted
Line 352: Line 352:
whereby you may start to use the three GDI+ function names (either directly or through arbitrary aliases as shown above), as well as the entire namespace of OpenGL functions, in your script.
whereby you may start to use the three GDI+ function names (either directly or through arbitrary aliases as shown above), as well as the entire namespace of OpenGL functions, in your script.


Lastly, there are at least two methods in FBSL to call machine code routines given their entry points:
Lastly, there are at least two methods in FBSL to call in-memory machine code routines given their entry points:
<pre>CALLABSOLUTE(varByteBuffer[, parm1[, parm2[, parm3[, parm4]]]]) ' varByteBuffer stores machine code bytes
<pre>CALLABSOLUTE(varByteBuffer[, parm1[, parm2[, parm3[, parm4]]]]) ' varByteBuffer stores machine code bytes
FUNCALL(varEntryPoint[, parameters...]) ' varEntryPoint stores function call address</pre>
FUNCALL(varEntryPoint[, parameters...]) ' varEntryPoint stores function call address</pre>