mb_pop_module

Previous  Next

 

status_t mb_pop_module( mb_interpreter_t* s, void** l, void** module )

 


 

This function pops a MODULE parameter from the interpreter.

 

Example

 

/////////////////////////////////////////////////////////////////////////////

// Return TRUE if module is NULL

int _module_null( mb_interpreter_t* s, void** l )

  {

  void* module;

 

  mb_assert( s && l );

 

  mb_check( mb_attempt_open_bracket( s, l ) );

  mb_check( mb_pop_handle( s, l, &module ) );

  mb_check( mb_attempt_close_bracket( s, l ) );

 

  mb_check( mb_push_int( s, l, module == NULL ) );

 

  return MB_FUNC_OK;

  }

endfunc