debugerror.h

来自「RFID温度签的源码」· C头文件 代码 · 共 31 行

H
31
字号
#ifndef __DEBUG_ERROR_H__
#define __DEBUG_ERROR_H__

//#define __DEBUG__

#ifdef __DEBUG__

#define DEBUG_LOG_FILE "C:\\DebugLog.log"
// function

void OutputLogToFile( const char* str );
void OutputLogToFile1( const char* str, int val );
void OutputTimeToFile();

// macro

#define OutputDebugLog( STR )			OutputLogToFile( (STR) )
#define OutputDebugLog1( STR, VAL )		OutputLogToFile1( (STR), (VAL) )
#define OutputTimeToLog()				OutputTimeToFile()

#else // __DEBUG__

#define OutputDebugLog( STR )
#define OutputDebugLog1( STR, VAL )
#define OutputTimeToLog()

#endif // __DEBUG__

#endif // __DEBUG_ERROR_H__

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?