SOM Kernel Reference 1-59
SOM_NoTrace Macro
Purpose
Used to turn off method debugging.
Syntax
SOM_NoTrace (<token> className, <token> methodName);
Description
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.
Parameters
className The name of the class for which tracing will be turned off, given as a simple
token rather than a quoted string.
methodName The name of the method for which tracing will be turned off, given as a
simple token rather than a quoted string.
Expansion
The SOM_NoTrace macro has a null (empty) expansion.
Example
Within an implementation file:
#define AnimalMethodDebug(c,m) SOM_NoTrace(c,m)
#include <animal.ih>
/* Now AnimalMethodDebug does nothing */
Komentarze do niniejszej Instrukcji