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
注释宏定义
版权声明:
作者:朝雾之归乡
出处:http://www.cnblogs.com/cnpirate
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文链接,否则保留追究法律责任的权利。