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