mb_suspend |
status_t mb_suspend( mb_interpreter_t* s, void** l )
This function suspends and saves current execution point. Some extended functions need this ability and resume that point after some other operations. Call mb_run to resume a suspended point.
Example
///////////////////////////////////////////////////////////////////////////// // int _just_an_example( mb_interpreter_t* s, void** l ) { // Parse Parameter(s) BEGIN_PARSE( s, l ) POP_INT( nPar ) END_PARSE
// We need to suspend MyBASIC2 at this point mb_suspend( bas, l );
// Perform some operations that may affect the state of MyBASIC2 nRet = Do_something_extreme();
// Resume... mb_run( s );
// Return incremented integer parameter RETURN_INT( nRet ); }
|