diff options
author | Jan Huwald <jh@sotun.de> | 2012-05-07 19:53:27 (GMT) |
---|---|---|
committer | Jan Huwald <jh@sotun.de> | 2012-05-07 19:53:27 (GMT) |
commit | 00b209240138660db1ded3ef3870023964ce6e4e (patch) | |
tree | 8ffaec780b060bdc478929aa714b8af2ee760671 /code/core/log.h |
Diffstat (limited to 'code/core/log.h')
-rw-r--r-- | code/core/log.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/code/core/log.h b/code/core/log.h new file mode 100644 index 0000000..57fb21b --- /dev/null +++ b/code/core/log.h @@ -0,0 +1,7 @@ +#ifndef LOG_H +#define LOG_H + +#define WARN(str) fprintf(stderr, "WARN at " __FILE__ ":%d: " str "\n", __LINE__, str); +#define DIE(str) { fprintf(stderr, "FATAL at " __FILE__ ":%d: " str "\n", __LINE__, str); exit(-1); } + +#endif |