projects
/
centaur.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Cleaner error handling with ELFU_WARN and ELFU_WARNELF
[centaur.git]
/
include
/
libelfu
/
debug.h
1
#ifndef __LIBELFU_DEBUG_H_
2
#define __LIBELFU_DEBUG_H_
3
4
#include <stdio.h>
5
6
7
#define ELFU_WARN(...) do { fprintf(stderr, __VA_ARGS__); } while(0)
8
9
#define ELFU_WARNELF(function_name) ELFU_WARN(function_name "() failed: %s\n", elf_errmsg(-1))
10
11
#endif