|
mb_push_int |
|
|
status_t mb_push_int( mb_interpreter_t* s, void** l, int_t val )
Pushes a function return value of type INTEGER to the interpreter.
Example
///////////////////////////////////////////////////////////////////////////// // Return the Red Component of a RGB Value // LOCAL int _std_red( mb_interpreter_t* s, void** l ) { int rgb;
mb_assert( s && l );
mb_check( mb_attempt_open_bracket( s, l ) ); mb_check( mb_pop_int( s, l, &rgb ) ); mb_check( mb_attempt_close_bracket( s, l ) );
mb_check( mb_push_int( s, l, GetRValue( rgb ) ) );
return MB_FUNC_OK; } endfunc |