1 Star 0 Fork 0

ssqstone/ControlFlowCodeGen

Create your Gitee Account
Explore and code with more than 14 million developers,Free private repositories !:)
Sign up
文件
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
DebugUtilities.cpp 896 Bytes
Copy Edit Raw Blame History
ssqstone authored 2014-12-21 14:22 +08:00 . ini
#include "DebugUtilities.h"
#include <iostream>
#include <sstream>
using namespace std;
#ifdef DEBUG_OS
void DebugUtilities::assert( bool t , char* msg /*=NULL*/, char* const errorMsg /*= NULL*/)const
{
cout << msg;
if(!t)
{
cout << "***************assert errror*****************\n" << msg;
cout << "in " << (*this);
informError(msg);
}
}
void DebugUtilities::staticAssert( bool t , char* msg /*=NULL*/, char* const errorMsg /*= NULL*/)
{
cout << msg;
if(!t)
{
cout << "***************static assert errror*****************\n" << msg;
staticInformError(msg);
}
}
#endif
void DebugUtilities::must( bool t, char* const msg /*= ""*/, char* const errorMsg /*= ""*/ ) const
{
cout << msg;
if(!t)
{
cout << "***************must errror*****************\n" << msg;
cout << "in " << (*this);
informError(msg);
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/ssqston/ControlFlowCodeGen.git
git@gitee.com:ssqston/ControlFlowCodeGen.git
ssqston
ControlFlowCodeGen
ControlFlowCodeGen
master

Search