rstd.cct
来自「C语言前端编译器,yacc/lex编写,可自行修改代码.」· CCT 代码 · 共 23 行
CCT
23 行
// Copyright 2000 by Robert Dick.
// All rights reserved.
/*===========================================================================*/
inline void rassert(bool x, const char * file, int line) {
if (! x) {
rabort(file, line, "Assertion failed. Aborting.\n");
}
}
/*===========================================================================*/
inline int to_signed(unsigned x)
{ RASSERT(static_cast<int>(x) >= 0); return static_cast<int>(x); }
inline long to_signed(unsigned long x)
{ RASSERT(static_cast<long>(x) >= 0); return static_cast<long>(x); }
inline unsigned to_unsigned(int x)
{ RASSERT(x >= 0); return static_cast<unsigned>(x); }
inline unsigned long to_unsigned(long x)
{ RASSERT(x >= 0); return static_cast<unsigned long>(x); }
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?