mirror of
https://git.suyu.dev/suyu/AppImageKit-checkrt.git
synced 2026-01-05 05:58:10 +01:00
Move DEBUG macro to own header to be a standalone helper
This commit is contained in:
parent
2f04ad81c6
commit
2796ea1f5f
4 changed files with 17 additions and 9 deletions
11
debug.h
Normal file
11
debug.h
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
#ifndef DEBUG_H
|
||||
#define DEBUG_H
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#define DEBUG(...) do { \
|
||||
if (getenv("APPIMAGE_CHECKRT_DEBUG")) \
|
||||
printf(__VA_ARGS__); \
|
||||
} while (0)
|
||||
|
||||
#endif // DEBUG_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue