Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifdef DEBUG
- # define DPRINTF(...) fprintf(stderr, __VA_ARGS__);
- #else
- # define DPRINTF(...)
- #endif
- try {
- //something that fails
- } catch {
- //do nothing
- }
- #ifdef DEBUG
- #define DBG x printf x
- #else
- #define DBG x do {} while (0)
- #endif
- void my_printf(int section, int level, ...)
- {
- if (global_debug_off)
- return;
- //do you stuff here
- }
- <pre>
- var_dump()
- print_r()
Add Comment
Please, Sign In to add comment