mb_push_reference

Previous  Next

 

status_t mb_push_reference( mb_interpreter_t* s, void** l, void* val )

 


 

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

 

Example

 

// NULL Object

 

t.type = _DT_ARRAY;

t.data.array = NULL;

 

// Points to NULL Object by Default

 

vIn.type = MB_DT_REFERENCE;

vOut.type = MB_DT_REFERENCE;

vIn.value.reference = &t;

vOut.value.reference = &t;

 

int nRet = g_this->V2D( pOutArray, pInArray, nPoint, nFileNo, &err );

 

if ( nRet != MB_FUNC_OK )

  {

  mb_set_error( s, l, err );

  pOut = NULL;

  }

endif

 

// Return reference to output array

 

mb_check( mb_push_reference( s, l, vOut.value.reference ) );