资 源 简 介
bag macros
Useful macros for debugging C code in a Unix environment
Current version: 1.1.5
Output format: [macro|file/function(line)] result
Usage: #include at the beginning of the source file where you plan to use the macros. They can be disabled at any time by adding the -DNDEBUG flag to GCC.
Go to Downloads to get the latest source code. If you encounter any bugs, please report them by submitting an issue.
Note: output produced by these macros is sent to the standard error stream.
baglog(format, …)
Writes output with the given printf-like format. The default colour of the output is cyan, although it may be changed in the CONFIG SWITCHES section. A newline character is always appended at the end.
bagerr(format, …)