assert.cpp
来自「大名鼎鼎的远程登录软件putty的Symbian版源码」· C++ 代码 · 共 25 行
CPP
25 行
/* assert.cpp * * A new assert.h to override a broken one in the 9210i SDK version 1.2. * Panics the application if an assertion fails. * * Copyright 2002 Petteri Kangaslampi * * See license.txt for full copyright and license information.*/#include <e32std.h>#include <assert.h>#include "charutil.h"extern "C" void assert_failed(const char *file, int line, const char * /*expr*/) { TPtr *fdes = CreateDes(file); if ( fdes->Length() < 16 ) { User::Panic(*fdes, line); } else { User::Panic(fdes->Right(16), line); }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?