|
BB2 C port
API reference: Blitz libraries in C and the shared code
|
#include "blitzlib.h"Functions | |
| void | quit (void) |
| End ($C800 endjmp): leave the program from anywhere. | |
| void | exitslib_codeinit (void) |
| init: remember the cleanup code and the stack pointer. | |
| void | data (void) |
| void data | ( | void | ) |
| void exitslib_codeinit | ( | void | ) |
init: remember the cleanup code and the stack pointer.
Called from the program start code. Assembler (it saves sp).
| void quit | ( | void | ) |
End ($C800 endjmp): leave the program from anywhere.
Assembler (a non-local exit like longjmp): restores the stack pointer saved by init (+8: the start code's return address and the init call's own) and jumps to the cleanup code. Does not return.