Carna  Version 3.3.2
Macros
glError.h File Reference

Defines the REPORT_GL_ERROR macro. More...

#include <Carna/base/CarnaException.h>
+ Include dependency graph for glError.h:

Go to the source code of this file.

Macros

#define __func__   __FUNCTION__
 Overloads the func macro with FUNCTION for GCC compatibility. More...
 
#define __REPORT_GL_ERROR_IMPL
 Defines the implementation of the REPORT_GL_ERROR macro. More...
 
#define REPORT_GL_ERROR   __REPORT_GL_ERROR_IMPL
 Queries the GL error state and prints it to the debug output. More...
 

Detailed Description

Defines the REPORT_GL_ERROR macro.

Author
Leonid Kostrykin
Date
16.8.2012

Definition in file glError.h.

Macro Definition Documentation

◆ __func__

#define __func__   __FUNCTION__

Overloads the func macro with FUNCTION for GCC compatibility.

Author
Leonid Kostrykin
Date
16.8.2012

Definition at line 35 of file glError.h.

◆ __REPORT_GL_ERROR_IMPL

#define __REPORT_GL_ERROR_IMPL
Value:
{ \
const unsigned int err = glGetError(); \
CARNA_ASSERT_EX( err == GL_NO_ERROR, "GL Error State in " \
<< __func__ << ": " \
<< std::string( reinterpret_cast< const char* >( gluErrorString( err ) ) ) \
<< " [" << err << "] (" << __FILE__ << ":" << __LINE__ << ")" ); }
#define __func__
Overloads the func macro with FUNCTION for GCC compatibility.
Definition: glError.h:35

Defines the implementation of the REPORT_GL_ERROR macro.

Author
Leonid Kostrykin
Date
26.2.2015

Definition at line 54 of file glError.h.

◆ REPORT_GL_ERROR

#define REPORT_GL_ERROR   __REPORT_GL_ERROR_IMPL

Queries the GL error state and prints it to the debug output.

Define NO_GL_ERROR_CHECKING to disable this functionality, i.e. in the release build.

Author
Leonid Kostrykin
Date
16.8.2012

Definition at line 73 of file glError.h.