debug.h

来自「CS8900A driver source code project file」· C头文件 代码 · 共 35 行

H
35
字号
// ------------------------------------------------------------------------
/// @file debug.h
/// @brief Debugging
/// @author Harald Axmann
/// @date 08.05.2006
// ------------------------------------------------------------------------

#ifndef _DEBUG_H_
#define _DEBUG_H_

#ifdef _DEBUG

#define INF 0
#define WRN 1
#define ERR 2

// declare the buffer here, so that it is accessible from the whole program
extern char debug_buffer_[];

void _DEBUG_(int, const char *format, ...);

#else // _DEBUG

#define INF 0
#define WRN 1
#define ERR 2

static inline void _DEBUG_(...) {}

#endif // _DEBUG

#define DEBUG _DEBUG_

#endif // _DEBUG_H_

⌨️ 快捷键说明

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