1
0
Fork 0
spectre/source/Graphics/GL/CheckError.h

11 lines
338 B
C

#ifndef SPECTRE_GRAPHICS_GL_CHECKERROR_H
#define SPECTRE_GRAPHICS_GL_CHECKERROR_H
#include <Spectre/Graphics/OpenGL.h>
#define checkGLError(expr) do { expr; glCheckError(__FILE__, __LINE__, #expr); } while(false)
void glCheckError(const char *file, unsigned int line, const char *expr);
#endif /* SPECTRE_GRAPHICS_GL_CHECKERROR_H */