RETURN_REF |
RETURN_REF( ref-value )
Returns a REFERENCE
Example
void* pValue; mb_data_e type;
BEGIN_PARSE( s, l ) POP_INT( nIntValue ) POP_REF( pRef ) END_PARSE
// Get the pointer and the type of variable the pointer points at mb_translate_reference( s, l, pRef, &pValue, &type );
// If the variable pointed to by the REFERENCE is an INTEGER // then set the variable to the value of nIntValue if ( type == MB_DT_INT ) { int* pInt = (int*)pValue; *pInt = nIntValue; } endif
RETURN_REF( pRef )
|