diff options
Diffstat (limited to 'include/libelfu/debug.h')
-rw-r--r-- | include/libelfu/debug.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/libelfu/debug.h b/include/libelfu/debug.h new file mode 100644 index 0000000..4c82345 --- /dev/null +++ b/include/libelfu/debug.h @@ -0,0 +1,11 @@ +#ifndef __LIBELFU_DEBUG_H_ +#define __LIBELFU_DEBUG_H_ + +#include <stdio.h> + + +#define ELFU_WARN(...) do { fprintf(stderr, __VA_ARGS__); } while(0) + +#define ELFU_WARNELF(function_name) ELFU_WARN(function_name "() failed: %s\n", elf_errmsg(-1)) + +#endif |