The C and C++ language bindings include code to check the validity of method calls at run time. If a validity check fails, the SOM_Error macro ends the process. (SOM_Error is described below.) To enable method-call validity checking, place the following directive in the client program prior to any #include directives for SOM header files:
#define SOM_TestOn
Alternatively, the -DSOM_TestOn option can be used when compiling the client program to enable method-call validity checking.