-
Notifications
You must be signed in to change notification settings - Fork 1
TRACE macro
Eric Flumerfelt edited this page Jun 17, 2022
·
1 revision
TRACE uses the macro preprocessor.
The trace macros are anonymous variadic macros. GCC has supported these
macros in C and C since at least version 4.4.7 (and probably
before).
There is a limit to the number of “arguments” to the message that the
TRACE macros support: 35.
The work-around to this limit, should one be needed, is to pre-format
the arguments beyond 35 into
the message.
Note: With many years of experience, it is reasonable to further limit,
to increase efficiency, the number of arguments saved
to memory. The default number of arguments saved to memory is 10. This
limit is configurable between 0 and 35.
A compile error will occur of more than 35 arguments are specified in a TRACE statement.