CCTests implements some facilities to print common debugging messages from test programs.
Enables the debugging facilities when it is defined to ‘1’ before the inclusion of cctests.h. By default, or if this symbol is defined to ‘0’: the macros documented below will expand to the empty expression.
When debugging is enabled, expand to:
((EXPR)? "yes" : "no")
When debugging is enabled, expand to an expression that prints to cctests_log_stream
a
debugging message. The message is composed of the current position in the source code and the
result of formatting template with the given, optional, arguments; formatting works like it
does for printf()
.
When debugging is enabled, expand to:
cctests_debug_print("mark")
This document describes version 0.4.1-devel.1 of CCTests.