mb_push_module

Previous  Next

 

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

 


 

Pushes a function return value of type MODULE to the interpreter.

 

Example

 

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

// module = LoadLibray( "library-name" )

//

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

  {

  BEGIN_PARSE( s, l )

     POP_STRING( pName )

  END_PARSE

 

  void* hModule = (void*)LoadLibrary( pName );

 

  mb_check( mb_push_module( s, l, hModule ) );

 

  return MB_FUNC_OK;

  }

endfunc