sassert.h

来自「hoard内存管理器」· C头文件 代码 · 共 31 行

H
31
字号
#ifndef _SASSERT_H_#define _SASSERT_H_/** * @class  sassert * @brief  Implements compile-time assertion checking. * @author Emery Berger <http://www.cs.umass.edu/~emery> * * @code *   sassert<(1+1 == 2)> CheckOnePlusOneIsTwo; * @endcode * * This code is part of the Hoard distribution and is governed by its license. * <http://www.hoard.org> * */namespace HL {  template <int assertion>    class sassert;  template<> class sassert<1> {  public:    enum { VALUE = 1 };  };}#endif

⌨️ 快捷键说明

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