IS_xxx_VALUE

Previous  Next

 

IS_STRING_VALUE( value )

IS_INT_VALUE( value )

IS_REAL_VALUE( value )

IS_NUM_VALUE( value )

IS_REF_VALUE( value )

IS_HANDLE_VALUE( value )

IS_MODULE_VALUE( value )

IS_ARRAY_VALUE( value )

 


 

Checks if value is of specified type.  These macros will not raise an error condition as the VERIFY_xxx_VALUE does so they can be used for conditional testing.

 

Example

 

BEGIN_PARSE( s, l )

  POP_VALUE( val )

END_PARSE

 

// Get the int number if type INTEGER

if ( IS_INT_VALUE( val ) )

  {

  int iVal = INT_VALUE( val );

  }