src/Resource/Assert.h File Reference

This file contains the Assertion exception and macro. More...

#include <exception>
#include <string>

Go to the source code of this file.

Classes

class  Assertion
 This exception is thrown when an assertion fails. More...

Defines

#define Assert(x)
 Assert that x is true, if it is not an Assertion exception is thrown.


Detailed Description

This file contains the Assertion exception and macro.

See also:
Assertion

Assert

Definition in file Assert.h.


Define Documentation

#define Assert (  ) 

Value:

if(!(x)) {                                              \
                throw Assertion("" # x,                         \
                        __FILE__, __LINE__,                     \
                        __FUNCTION__, __PRETTY_FUNCTION__);     \
        }
Assert that x is true, if it is not an Assertion exception is thrown.

Definition at line 65 of file Assert.h.


Generated for UnsignedByte by  doxygen 1.5.3
SourceForge.net Logo