📄 dbgprint.cpp
字号:
/******************************************************************************
*******************************************************************************
** **
** 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.cpp
*
* $Revision: 1.3 $
*
* Debug output handler
*
*/
#include "dbgprint.h"
#include <assert.h>
#include <stdio.h>
#include <stdarg.h>
/**
*******************************************************************************
* DebugPrint sends a formatted message to stdout
*
* @param strFormatString pointer to printf style format cstring
* @param ... variable length argument list
*
* @return value returned by vprintf
*******************************************************************************/
int DebugPrint(const char* strFormatString, ...)
{
va_list argumentList;
int result;
va_start ( argumentList, strFormatString );
result = vprintf( strFormatString, argumentList );
va_end ( argumentList );
return ( result );
}
/**
*******************************************************************************
* DebugAssert calls platform assert
* No action is taken if the condition evaluates to true.
*
* @param condition conditional expression to be tested
*
*******************************************************************************/
void DebugAssert( int condition, const char* filename, const char* function, int sourceLineNumber )
{
assert(condition);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -