【文件属性】:
文件名称:zerodbg:用于调试目的的有用宏
文件大小:3KB
文件格式:ZIP
更新时间:2021-07-01 18:11:12
C
零数据库
用于调试目的的有用宏。
debug ( " I see what you did there o_O! " );
log_info ( " standing still " );
输出:
* DEBUG example.c:12: I see what you did there o_O!
* [INFO] (example.c:13) standing still
或者您可以使用debug_set_log(FILE * log_file);将日志信息重定向到文件debug_set_log(FILE * log_file); .
如果您#define NDEBUG调用调试将被忽略并且不会输出任何内容。
如果你想输出errnos,你可以使用debug_errno()将错误号转换为字符串,如果没有错误发生,结果字符串将为“None”。
安装
$ clib insta
【文件预览】:
zerodbg-master
----debug.c(376B)
----.gitignore(26B)
----package.json(227B)
----Makefile(74B)
----example.c(163B)
----README.md(880B)
----debug.h(1KB)