nd_macros

Name

nd_macros -- 

Synopsis



#define     return_if_no_current_trace      (tr)
#define     return_val_if_no_current_trace  (tr, val)
#define     TOUCH                           (x)

Description

Details

return_if_no_current_trace()

#define     return_if_no_current_trace(tr)

The macro checks whether there is currently a trace being edited. If that is the case, this trace is stored in tr, otherwise the macro returns from the current function.


return_val_if_no_current_trace()

#define     return_val_if_no_current_trace(tr, val)

This is the same macro as return_if_no_current_trace(), but it returns val is there is no current trace.


TOUCH()

#define TOUCH(x)  { x = 0; }

The macro's purpose is to touch a variable and thus shut up compiler warnings when there are unused parameters in the code.