Logging related Macrofunction¶
cfatal:¶
Macro, print message immediately and abort
DBG(lvl, xxx)¶
Macro, only exist in debug/optimized code, can not be used under xxx/export, prin t debug message only if lvl < 5,
in the code the lvl always a macro, could control this behavior with python interface set—debug—level(lvl, filename or module name)
DBG—SCOPF():¶
Macro, similar with DBG, working as DBG—SCOPF(lvl) {} which could enable/disable d ebug for a block.
DFFINF—DBG—VR:¶
Macro, define a debug only variable (this variable was only be used in DBG/DBG—SC OPF), defined this macro to avoid compiling error in release build(unusing variable warning)
ASSFRTS:¶
Macro, similar with built-in assert but could output more meaningful message.
Assert:¶
function, which required distribute message system, will report the message to the sched uler
FNS..RFS:¶
Macro, similar with ASSFRTS but not cause crash, designed for some unexpected value which many caused unexpected results
app—error/app—print,¶
function, will print APP.800/APP.400 to both screen and file, this is designed to show some info/error to user
pprint,¶
function, always print message to file without control
Updated by jun chen 3 months ago · 1 revisions