Skip to content

clibs/zerodbg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zerodbg

Useful macros for debugging purposes.

debug("I see what you did there o_O!");
log_info("standing still");

Output:

 * DEBUG example.c:12: I see what you did there o_O!
 * [INFO] (example.c:13) standing still

Or you could redirect logging information to a file using debug_set_log(FILE * log_file);.

If you #define NDEBUG calls to debug will be ignored and will output nothing.

If you want to output errnos, you can use debug_errno() to transform error number to string, if no error happened the resulted string will be “None”.

Installation

$ clib install zerodbg

For serious logging purposes please use a framework such as log4c for example.

About

Useful macros for debugging purposes.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published