opensurgsim
Namespaces | Macros
Assert.h File Reference

The header that provides the assertion API. More...

#include "SurgSim/Framework/Logger.h"
#include "SurgSim/Framework/AssertMessage.h"

Go to the source code of this file.

Namespaces

 SurgSim
 Wraps glewInit() to separate the glew opengl definitions from the osg opengl definitions only imgui needs glew but we need to call glewInit() from a osg callback, using this call we avoid getting warnings about redefinitions.
 

Macros

#define SURGSIM_ASSERT_LOGGER   ::SurgSim::Framework::Logger::getDefaultLogger()
 Logger used to log asserts. More...
 
#define SURGSIM_CURRENT_FUNCTION
 Helper macro to determine the function name currently being compiled. More...
 
#define SURGSIM_MAKE_STRING(x)   #x
 Helper macros to turn its argument into a quoted string constant. More...
 
#define SURGSIM_ASSERT(condition)
 Assert that condition is true. More...
 
#define SURGSIM_FAILURE()
 Report that something very bad has happened and abort program execution. More...
 

Detailed Description

The header that provides the assertion API.

See also
Assertions