|
84741 packages online
|
|
|
|
dev/c/zerodbg.lha |
|
No screenshot available
|
Short: | Useful macros for debugging purposes |
Author: | Nicolae Vartolomei |
Uploader: | Carsten Larsen (carsten larsen mail com) |
Type: | dev/c |
Version: | 1.0 |
Architecture: | m68k-amigaos,generic |
Date: | 2020-05-07 |
Download: | dev/c/zerodbg.lha - View contents | Readme: | dev/c/zerodbg.readme |
Downloads: | 852 |
|
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.
|
Contents of dev/c/zerodbg.lha
PERMISSION UID GID PACKED SIZE RATIO METHOD CRC STAMP NAME
---------- ----------- ------- ------- ------ ---------- ------------ ----------
[unknown] 198 376 52.7% -lh5- 9ee5 May 1 12:30 zerodbg/debug.c
[unknown] 401 1173 34.2% -lh5- 3cba May 1 12:30 zerodbg/debug.h
[unknown] 12800 21848 58.6% -lh5- 2213 May 1 12:30 zerodbg/example
[unknown] 200 269 74.3% -lh5- 4f71 May 1 12:30 zerodbg/example.c
[unknown] 132 153 86.3% -lh5- 6044 May 1 12:30 zerodbg/Makefile
[unknown] 546 981 55.7% -lh5- e2b9 May 1 12:30 zerodbg/zerodbg.readme
---------- ----------- ------- ------- ------ ---------- ------------ ----------
Total 6 files 14277 24800 57.6% May 7 00:31
|
|
|
|
Page generated in 0.02 seconds |
Aminet © 1992-2024 Urban
Müller and the Aminet team.
Aminet contact address: <aminetaminet net> |