MeshLib C++ Docs
Loading...
Searching...
No Matches
MRGLMacro.h File Reference
#include "MRPch/MRSpdlog.h"
#include "MRMesh/MRFinally.h"

Go to the source code of this file.

Macros

#define GL_EXEC(...)
 

Macro Definition Documentation

◆ GL_EXEC

#define GL_EXEC ( ...)
Value:
[&]() -> decltype(auto) \
{ \
auto error = glGetError();\
if ( error != 0 )\
spdlog::warn("GL error: {} In file: {} Line: {}", error , __FILE__ , __LINE__ );\
}; \
return __VA_ARGS__;\
}()
#define MR_FINALLY
Usage: MR_FINALLY{...};. Runs the code in braces when exiting the current scope, either normally or v...
Definition MRFinally.h:11