Zero  0.1.0
Classes | Namespaces | Macros
exception.hpp File Reference
#include <stdexcept>
#include "w_defines.h"

Go to the source code of this file.

Classes

class  zero::RuntimeException
 

Namespaces

 zero
 

Macros

#define throw0(condition, exception)
 
#define W_DEBUG_LEVEL
 
#define throw1(condition, exception)   throw0(condition, exception)
 
#define throw2(condition, exception)   throw1(condition, exception)
 
#define throw3(condition, exception)   throw2(condition, exception)
 
#define throw4(condition, exception)   throw3(condition, exception)
 
#define throw5(condition, exception)   throw4(condition, exception)
 
#define throw9(condition, exception)   if (false) { (void)(condition); }
 

Macro Definition Documentation

§ throw0

#define throw0 (   condition,
  exception 
)
Value:
do { \
if (condition) \
throw exception; \
} while(0)

§ throw1

#define throw1 (   condition,
  exception 
)    throw0(condition, exception)

§ throw2

#define throw2 (   condition,
  exception 
)    throw1(condition, exception)

§ throw3

#define throw3 (   condition,
  exception 
)    throw2(condition, exception)

§ throw4

#define throw4 (   condition,
  exception 
)    throw3(condition, exception)

§ throw5

#define throw5 (   condition,
  exception 
)    throw4(condition, exception)

§ throw9

#define throw9 (   condition,
  exception 
)    if (false) { (void)(condition); }

§ W_DEBUG_LEVEL

#define W_DEBUG_LEVEL