As directly as there is a smooth translating between c and pb (line after line), we must prepare the compiler to access to external functions.
If from pb scope, you can observe such these details and good execution of most of functions, so you know how to prepare them (the 2 help links just above).
What more on pb? Not a lot.
The address of a variable :
The address of a cell created by the head macro :
The value of such a cell :
The address of the array of cells :
The size (in byte) of this array :
A detail which is not notified here : in my suggesting, I allocate memory manually for every array to use.
Here, we have *pitch and *args.
I do not free this memory. So, it is important to know where you can free this memory, especially where the infos of these arrays are useless, to insert :
Code: Select all
FreeMemory(*pitch)
FreeMemory(*args)