check.hpp

来自「一个实现C++反射机制的类库」· HPP 代码 · 共 50 行

HPP
50
字号
/******************************************************************************\*                                                                              **   @.h                                                                        **                                                                              **   <Purpose of this file>                                                     **                                                                              *\******************************************************************************/// $Id: check.hpp,v 1.1 2007/10/25 14:05:27 tdevadit Exp $#ifndef REFLCPP_CHECK_H#define REFLCPP_CHECK_Hnamespace reflcpp {extern void checkFail(const char *t, const char *, const char *, int);// Always defined.  Use this for assertions that won't be very expensive.#define ixcr_check(e)                                                           \    (void) ((e) || (reflcpp::checkFail("Check", #e, __FILE__, __LINE__), 0))// Use this for assertions only in IXCR_DEBUG versions.#ifdef IXCR_DEBUG    #define ixcr_assert(e)                                                      \	(void) ((e) || (reflcpp::checkFail("Assertion", #e, __FILE__, __LINE__), 0))#else    #define ixcr_assert(e)    ((void) 0)#endifstatic const char check_hpp_id[] ="$Id: check.hpp,v 1.1 2007/10/25 14:05:27 tdevadit Exp $";}#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?