注释宏定义

typedef char int8_t;
typedef short int16_t;
typedef int int32_t;

typedef unsigned char uint8_t;
typedef unsigned short uint16_t;
typedef unsigned int uint32_t;

typedef char * pint8_t;
typedef short * pint16_t;
typedef int * pint32_t;

typedef unsigned char * puint8_t;
typedef unsigned short * puint16_t;
typedef unsigned int * puint32_t;

#define DEBUG_ENABLE
#ifdef DEBUG_ENABLE
#define Debugout(format, args...) xprintf(format, ##args)
#else
#define Debugout(format, args...)
#endif

#define ERR_INFO_ENABLE
#ifdef ERR_INFO_ENABLE
#define ErrorInfo(format, args...) printf(format, ##args)
#else
#define ErrorInfo(format, args...)
#endif

#define RET_OK        0
#define RET_FAIL    -1

#ifndef TRUE
#define TRUE 1
#endif

#ifndef FALSE
#define FALSE 0
#endif

 

posted @ 2013-01-23 20:42  朝雾之归乡  阅读(508)  评论(0编辑  收藏  举报