|
GLIP-Lib
|
Go to the documentation of this file.
24 #ifndef __DEV_DEBUG_TOOLS__
25 #define __DEV_DEBUG_TOOLS__
33 #define GLIP_STR_EXPAND(tok) #tok
34 #define GLIP_STR(tok) GLIP_STR_EXPAND(tok)
35 #define __HERE__ "[" GLIP_STR(__FUNCTION__) " at " GLIP_STR(__FILE__) " : " GLIP_STR(__LINE__) "] "
37 #define OPENGL_ERROR_TRACKER(functionName, callLine) \
39 GLenum err = glGetError(); \
40 if(err!=GL_NO_ERROR) \
42 const std::string description = getGLErrorDescription(err); \
43 std::cerr << functionName << " / " << callLine << " - Opengl error : " << description << std::endl; \
44 Glip::CoreGL::debugGL(); \