10 #if ((_WIN32) || (_WIN64)) // This OS Macro isn't working why? 11 #define ASSERT(x) if (!(x)) __debugbreak(); // Break the debugger from executing 14 #define ASSERT(x) if (!(x)) // For other platforms we don't trigger any debug functions we just record the assertion failure and report it 16 #define GLCall(x) GLClearError();\ 19 ASSERT(GLLogCall(#x, __FILE__, __LINE__)) 22 static void GLClearError()
24 while (glGetError() != GL_NO_ERROR);
32 static bool GLLogCall(
const char* functionName,
const char* file,
int line)
34 while (GLenum error = glGetError())
36 std::cerr <<
"OpenGL::ERROR:: " << error <<
"[Function : " << functionName <<
", File : " << file <<
", at Line : " << line <<
"]" << std::endl;
Definition: audioclip.cpp:3