mb_value_t_to_int

Previous  Next

 

int mb_value_t_to_int( mb_value_t value )

 


 

Converts the supplied mb_value_t data to a INTEGER number.

 

Example

 

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

// Convert a supplied value to INTEGER

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

{

  // Parse Parameter

  BEGIN_PARSE( s, l )

     POP_VALUE( val )

  END_PARSE

 

  // Return Converted data

  RETURN_INT( mb_value_t_to_int( val ) );

}