log.h

来自「傅立叶变换和小波变换是图像压缩的重要工具。该代大戏是利用小波变换进行图像压缩。」· C头文件 代码 · 共 45 行

H
45
字号
#ifndef CRBLIB_LOG_H
#define CRBLIB_LOG_H

#ifdef __cplusplus
extern "C" {
#endif

/*****

the Log protos :

void Log_Puts(	const char * string);
void Log_Printf(const char * string, ...);
void Log_TeeFile( FILE * FP );	// defaults to stdout

note : Log also writes out to ThreadLog !
use ThreadLog_Report() to dump data

*****/

#ifndef	NO_LOG

#include <stdio.h>

void Log_Puts(	const char * string);
void Log_Printf(const char * string, ...);
void Log_TeeFile( FILE * FP );

#else	// NO_LOG

#pragma warning (disable:4100)
static _inline void Log_Printf(const char * str, ...) { }
#pragma warning (default:4100)

#define Log_Puts(string)
#define Log_TeeFile(f)

#endif	// NO_LOG

#ifdef __cplusplus
}
#endif

#endif // LOG_H

⌨️ 快捷键说明

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