 |
MeshLib C++ Docs
|
Loading...
Searching...
No Matches
Go to the documentation of this file.
3#if !defined( NDEBUG ) && !defined( MR_GL_NO_LOGGING )
4#include "MRPch/MRSpdlog.h"
9#pragma clang diagnostic push
10#pragma clang diagnostic ignored "-Wgnu-zero-variadic-macro-arguments"
13#define GL_EXEC( ... ) \
15 void(MR::detail::ScopeGuard([] \
17 auto error = glGetError();\
19 spdlog::warn("GL error: {} In file: {} Line: {}", error , __FILE__ , __LINE__ );\
25#pragma clang diagnostic pop
29#define GL_EXEC( ... ) __VA_ARGS__