nfc-messages.h

00001 
00024 #ifndef _LIBNFC_MESSAGES_H_
00025 #define _LIBNFC_MESSAGES_H_
00026 
00027 // #define DEBUG   /* DEBUG flag can also be enabled using ./configure --enable-debug */
00028 
00029 // Useful macros
00030 #ifdef DEBUG
00031 //   #define DBG(x, args...) printf("DBG %s:%d: " x "\n", __FILE__, __LINE__,## args )
00032   #define DBG(x, ...) fprintf(stderr, "DBG %s:%d: " x "\n", __FILE__, __LINE__, ## __VA_ARGS__ )
00033 #else
00034   #define DBG(...) {}
00035 #endif
00036 
00037 #define INFO(x, ...) printf("INFO: " x "\n", ## __VA_ARGS__ )
00038 #define WARN(x, ...) printf("WARNING: " x "\n", ## __VA_ARGS__ )
00039 #define ERR(x, ...) fprintf(stderr, "ERROR: " x "\n", ## __VA_ARGS__ )
00040 
00041 #endif // _LIBNFC_MESSAGES_H_

Generated on 4 Sep 2010 for libnfc by  doxygen 1.6.1