mb_pop_handle |
status_t mb_pop_handle( mb_interpreter_t* s, void** l, handle_t* val )
This function pops a HANDLE parameter from the interpreter.
Example
///////////////////////////////////////////////////////////////////////////// // Return TRUE if handle is NULL int _handle_null( mb_interpreter_t* s, void** l ) { handle_t handle;
mb_assert( s && l );
mb_check( mb_attempt_open_bracket( s, l ) ); mb_check( mb_pop_handle( s, l, &handle ) ); mb_check( mb_attempt_close_bracket( s, l ) );
mb_check( mb_push_int( s, l, handle == NULL ) );
return MB_FUNC_OK; } endfunc |