MeshLib
 
Loading...
Searching...
No Matches
MRGLMacro.h
Go to the documentation of this file.
1#pragma once
2#ifndef NDEBUG
3#include "MRPch/MRSpdlog.h"
4#define GL_EXEC( func )\
5func; \
6{\
7 auto error = glGetError();\
8 if ( error != 0 )\
9 spdlog::warn("GL error: {} In file: {} Line: {}", error , __FILE__ , __LINE__ );\
10}
11#else
12#define GL_EXEC( func ) func;
13#endif