Archived
1
0
Fork 0

common/debug.h: replaced die-macro with function in die.c

This commit is contained in:
Henrik Hautakoski 2010-09-25 18:43:32 +02:00
parent b137dd64f5
commit dd73cf9422
2 changed files with 7 additions and 6 deletions

View file

@ -9,17 +9,14 @@
*/
#ifndef __COMMON_DEBUG_H
#define __COMMON_DEBUG_H
#include <stdio.h>
#include <stdlib.h>
#define __perror(...) fprintf(stderr, __VA_ARGS__)
#include "util.h"
#define die(...) \
__perror("DIE: " __VA_ARGS__); \
exit(1)
#define __perror(...) fprintf(stderr, __VA_ARGS__)
#ifdef __DEBUG__