API Guides > ConceptRT 3.x
is_of_compatible_type

Detailed Description

Macros

#define is_of_compatible_type(type, expression)
 Helper to find out if an expression return type is equal to a given type. More...
 

Macro Definition Documentation

#define is_of_compatible_type (   type,
  expression 
)

Helper to find out if an expression return type is equal to a given type.

Parameters
typeThe type
expressionThe expression

Usage :

1 if (is_of_compatible_type(&ISerializable, GetObjectB()))
2 {
3  // Expression GetObjectB() return something compatible with ISerializable.
4 }