⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fdebug.h

📁 FDEBUG module for debug on any platform.
💻 H
字号:
/*
============================================================================
 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -