⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rstd.cct

📁 C语言前端编译器,yacc/lex编写,可自行修改代码.
💻 CCT
字号:
// 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -