📄 dbgprint.h
字号:
/******************************************************************************
*******************************************************************************
** **
** Copyright (c) 2006 Videon Central, Inc. **
** All rights reserved. **
** **
** The computer program contained herein contains proprietary information **
** which is the property of Videon Central, Inc. The program may be used **
** and/or copied only with the written permission of Videon Central, Inc. **
** or in accordance with the terms and conditions stipulated in the **
** agreement/contract under which the programs have been supplied. **
** **
*******************************************************************************
******************************************************************************/
/**
* @file dbgprint.h
*
* $Revision: 1.2 $
*
* Common Debug function and macro declarations
*
*/
#ifndef DBGPRINT_H
#define DBGPRINT_H
#include <stdio.h>
#include <assert.h>
#ifdef __cplusplus
extern "C" {
#endif
#ifndef NULL
#ifdef __cplusplus
#define NULL 0
#else
#define NULL ((void *)0)
#endif
#endif
#define DBG_ALL 0
#define DBG_ERROR 1
#define DBG_TRACE 2
#define DBG_VERBOSE 3
#define DBG_DISABLED 0xffffffff
#ifdef NDEBUG
#define DbgPrint(_x_)
#define DBGPRINT(level, msg)
#define DbgAssert(x)
#else
#define DbgPrint(_x_) printf _x_
#define DbgAssert(x) assert(x)
#define DBGPRINT(level, msg ) { if (level != 0){ DbgPrint(msg); } }
#endif
#ifdef _MSC_VER
#define DEBUG_BREAKPOINT __asm int 3;
#endif
#ifndef DEBUG_BREAKPOINT
#define DEBUG_BREAKPOINT {}
#endif
#ifdef __cplusplus
}
#endif
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -