debug.hpp

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

HPP
46
字号
/******************************************************************************\*                                                                              **   @.h                                                                        **                                                                              **   <Purpose of this file>                                                     **                                                                              *\******************************************************************************/// $Id: debug.hpp,v 1.1 2007/10/25 14:05:27 tdevadit Exp $#ifndef REFLCPP_DEBUG_h#define REFLCPP_DEBUG_h#include <assert.h>#include <stdio.h>#ifdef IXCR_DEBUG#define ASSERT(condition, string)		if (!(condition)) { printf("%s\n", string); assert(condition);}#else#define ASSERT(condition, string)#endifnamespace reflcpp {static const char debug_h_id[] ="$Id: debug.hpp,v 1.1 2007/10/25 14:05:27 tdevadit Exp $";}#endif/* Local Variables: *//* c-basic-offset: 4 *//* End: *//* vim: set filetype=cpp tabstop=8 shiftwidth=4 softtabstop=4 expandtab: */

⌨️ 快捷键说明

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