ManaPlus
Data Structures | Namespaces | Macros
static_assert.h File Reference

(986a3bf)

#include "debug/nvwa/c++11.h"

Go to the source code of this file.

Data Structures

struct  nvwa::compile_time_error< true >
 

Namespaces

 nvwa
 

Macros

#define STATIC_ASSERT(_Expr, _Msg)
 

Detailed Description

Template class to check validity duing compile time (adapted from Loki).

Date
2013-09-07

Definition in file static_assert.h.

Macro Definition Documentation

◆ STATIC_ASSERT

#define STATIC_ASSERT (   _Expr,
  _Msg 
)
Value:
{ \
nvwa::compile_time_error<((_Expr) != 0)> ERROR_##_Msg; \
(void)ERROR_##_Msg; \
}

Definition at line 52 of file static_assert.h.