Print debug logs when APPIMAGE_CHECKRT_DEBUG is set

This commit is contained in:
Pablo Marcos Oltra 2018-01-06 10:27:32 +01:00
parent e1d82c8085
commit 73a1aa4132
3 changed files with 20 additions and 9 deletions

View file

@ -1,3 +1,9 @@
extern char *optional;
extern char *optional_ld_preload;
extern void checkrt(char *usr_in_appdir);
extern int debug_flag;
#define DEBUG(...) do { \
if (debug_flag) \
printf(__VA_ARGS__); \
} while (0)