Move DEBUG macro to own header to be a standalone helper

This commit is contained in:
Pablo Marcos Oltra 2018-01-06 19:09:53 +01:00
parent 2f04ad81c6
commit 2796ea1f5f
4 changed files with 17 additions and 9 deletions

11
debug.h Normal file
View 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