add markers

master
Avril 4 years ago
parent 14a7d409c2
commit 1daa5690c8
Signed by: flanchan
GPG Key ID: 284488987C31F630

@ -12,7 +12,7 @@
#ifdef DEBUG #ifdef DEBUG
#define dlog(...) fprintf(stderr, "[debug]" __VA_ARGS__) #define dlog(...) fprintf(stderr, "[debug]" __VA_ARGS__)
#else #else
inline static __attribute__((cold)) void do_nothing(int _n, ...) {} inline extern void do_nothing(int _n, ...) {}
#define dlog(...) do { if(0) { do_nothing(0 __VA_OPT__(,) __VA_ARGS__); } } while(0) #define dlog(...) do { if(0) { do_nothing(0 __VA_OPT__(,) __VA_ARGS__); } } while(0)
#endif #endif

Loading…
Cancel
Save