mb_register_func |
status_t mb_register_func( mb_interpreter_t* s, const char* lpszName, mb_func_t pCallBack )
The function registers a MyBASIC2 function by name and callback. This callback function is called whenever the function is used in a MyBASIC2 script. Registered functions will be available in any child interpreters opened after you have registered the functions.
The callback function is defined as
typedef int (*mb_func_t)( struct mb_interpreter_t*, void** );
Example
See Sample
|