SOM NoTrace: Difference between revisions
Appearance
Created page with "This macro is used to turn off method debugging. ==Syntax== <PRE> <token> className; <token> methodName; SOM_NoTrace(className, methodName); </PRE> ==Parameters== ; c..." |
mNo edit summary |
||
Line 1: | Line 1: | ||
This macro is used to turn off method debugging. | {{DISPLAYTITLE:SOM_NoTrace}} | ||
This macro is used to turn off method debugging. | |||
==Syntax== | ==Syntax== | ||
<token> className; | |||
<token> className; | <token> methodName; | ||
<token> methodName; | |||
SOM_NoTrace(className, methodName); | |||
SOM_NoTrace(className, methodName); | |||
==Parameters== | ==Parameters== | ||
; className (<token>) : The name of the class for which tracing will be turned off, given as a simple token rather than as a quoted string. | ;className (<token>): The name of the class for which tracing will be turned off, given as a simple token rather than as a quoted string. | ||
;methodName (<token>): The name of the method for which tracing will be turned off, given as a simple token rather than as a quoted string. | |||
==Return Code== | ==Return Code== | ||
==Remarks== | ==Remarks== | ||
The | The SOM_NoTrace macro is used to turn off method debugging. Within an implementation file for a class, before #including the implementation (.ih or .xih) header file for the class, #define the <className>MethodDebug macro to be SOM_NoTrace. Then, <className>MethodDebug will have no effect. | ||
SOM_NoTrace | |||
macro is used to turn off method debugging. Within an implementation file for a class, before #including the | |||
implementation (.ih or .xih) header file for the class, #define the <className>MethodDebug macro to be SOM_NoTrace. Then, <className>MethodDebug will have no effect. | |||
==Expansion== | ==Expansion== | ||
Line 33: | Line 29: | ||
==Related== | ==Related== | ||
[[Category:SOM macro]] | |||
[[Category:SOM |
Latest revision as of 02:02, 6 May 2020
This macro is used to turn off method debugging.
Syntax
<token> className; <token> methodName; SOM_NoTrace(className, methodName);
Parameters
- className (<token>)
- The name of the class for which tracing will be turned off, given as a simple token rather than as a quoted string.
- methodName (<token>)
- The name of the method for which tracing will be turned off, given as a simple token rather than as a quoted string.
Return Code
Remarks
The SOM_NoTrace macro is used to turn off method debugging. Within an implementation file for a class, before #including the implementation (.ih or .xih) header file for the class, #define the <className>MethodDebug macro to be SOM_NoTrace. Then, <className>MethodDebug will have no effect.
Expansion
The SOM_NoTrace macro has a null (empty) expansion
Example Code
#define AnimalMethodDebug(c,m) SOM_NoTrace(c,m) #include <animal.ih> /* Now AnimalMethodDebug does nothing */