Slimelite BBS

zerodbg.lha

Back to c

Useful macros for debugging purposes

Size
14K (14,588 bytes)
Added
2026-11-20 02:42
Downloads
2
Long Description
Usage #include <stdio.h> #include "debug.h" int main (void) { debug("I see what you did there o_O!"); log_info("standing still"); return 0; } 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 Copy debug.h and debug.c to you source code tree.