Call a foreign-language function: Difference between revisions

Content added Content deleted
Line 355: Line 355:
FUNCALL(AddrOfEntryPoint[, parameters...]) ' works as either a Sub or Function</pre>
FUNCALL(AddrOfEntryPoint[, parameters...]) ' works as either a Sub or Function</pre>


All function calls support Integer, Quad, Single, or Double parameters and returns. FBSL features a built-in stack balancing mechanism which eliminates stack corruption irrespective of whether the API calls are using STDCALL or CDECL calling conventions. Please note that FBSL '''does not''' make use of forward function declarations or header files.
All function calls support Integer, Quad, Single, Double and String parameters and returns. FBSL supports natively ASCIIZ strings only. Unicode strings require explicit ANSITOWIDE()/WIDETOANSI() transforms.

FBSL features a built-in stack balancing mechanism which eliminates stack corruption regardless of whether the API calls are using STDCALL or CDECL calling conventions. Please note that FBSL '''does not''' make use of forward function declarations or header files.


=={{header|Forth}}==
=={{header|Forth}}==