diff --git a/include/check_gl.hpp b/include/check_gl.hpp index 5872e37..a7eb3dd 100644 --- a/include/check_gl.hpp +++ b/include/check_gl.hpp @@ -15,6 +15,7 @@ void opengl_shader_source(unsigned int shader, std::string const &src); void opengl_link_program(unsigned int program); } +//In C++ (and C), __FILE__ is a preprocessor macro #define CHECK_GL(x) do { \ (x); \ ::check_gl::opengl_check_error(__FILE__, __LINE__, #x); \