<classname>GetData and <classname>MethodDebug are class macros automatically generated by the SOM compiler and placed in the IH file. <classname>GetData gets the data for the object instance, somSelf, of the class.
Note: Methods that access the object's data use the <classname>GetData macro to establish addressability. This macro must be one of the first executable lines of code in each method, and the value it returns should be assigned to a local variable named somThis. The SOM compiler automatically generates the code that accomplishes this in each method stub in a C file.
<classname>MethodDebug provides method-tracing capabilities. This custom macro is generated as part of the method stubs produced in the C program template. It takes two arguments: a class name and a method name. If SOM_TraceLevel contains the value 1 or 2, the custom macro produces a message each time a method is entered. Setting SOM_TraceLevel to 2 also causes the methods supplied as part of the SOM run time to generate method trace output. To suppress the generation of method tracing code, place lines similar to the ones shown in the following figure in your C file after the #include statement for <classname>.IH:
#undef <classname>MethodDebug #define <classname>MethodDebug(c,m) SOM_NoTrace(c,m)