comparison src/neon/debug.h @ 1722:2e33cfa6a872

- Correct some compiler warnings
author Ralf Ertzinger <ralf@skytale.net>
date Mon, 17 Sep 2007 22:10:21 +0200
parents 29c35cb8873e
children 2c6cffdea077
comparison
equal deleted inserted replaced
1721:2e60ba395140 1722:2e33cfa6a872
20 20
21 #include <stdio.h> 21 #include <stdio.h>
22 22
23 #define _ENTER _DEBUG("enter") 23 #define _ENTER _DEBUG("enter")
24 #define _LEAVE _DEBUG("leave"); return 24 #define _LEAVE _DEBUG("leave"); return
25 #define _MESSAGE(tag, string, ...) do { fprintf(stderr, "%s: libneontrans.so: %s:%d (%s): " string "\n", \ 25 #define _MESSAGE(tag, string, ...) do { fprintf(stderr, "%s: libneonsrc.so: %s:%d (%s): " string "\n", \
26 tag, __FILE__, __LINE__, __func__, ##__VA_ARGS__); } while(0) 26 tag, __FILE__, __LINE__, __func__, ##__VA_ARGS__); } while(0)
27 27
28 #define _ERROR(...) _MESSAGE("ERROR", __VA_ARGS__) 28 #define _ERROR(...) _MESSAGE("ERROR", __VA_ARGS__)
29 29
30 #ifdef NEON_DEBUG 30 #ifdef NEON_DEBUG