fdebug.h
来自「FDEBUG module for debug on any platform.」· C头文件 代码 · 共 49 行
H
49 行
/*
============================================================================
Name : debug.h
Author :
Version :
Copyright : Your copyright notice
Description : debug.h - header file
============================================================================
*/
#ifndef DEBUG_H
#define DEBUG_H
#define __FDEBUG__
#if defined(__FDEBUG__)
#ifdef __cplusplus
extern "C"
{
#endif
void _fdebug(char* pszFile, const char* pszFunc, unsigned int iLine, char *lpszFormat, ...);
void _fdebug_open();
void _fdebug_close();
#ifdef __cplusplus
}
#endif
//find the marco that can be used both in vc2005 and gcc
#define FDEBUG(format, ...) _fdebug(__FILE__, __FUNCTION__, __LINE__, format, ##__VA_ARGS__);
//#ifdef WIN32
// #define FDEBUG(format, ...) _fdebug(__FILE__, __FUNCTION__, __LINE__, format, ##args);
//#else
// #define FDEBUG(format, args...) _fdebug(__FILE__, __FUNCTION__, __LINE__, format, ##args);
//#endif
#define FDEBUG_OPEN _fdebug_open();
#define FDEBUG_CLOSE _fdebug_close();
#else
#define FDEBUG
#define FDEBUG_OPEN
#define FDEBUG_CLOSE
#endif
#endif // DEBUG_H
// End of File
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?