diff options
Diffstat (limited to 'src/macros.hpp')
| -rw-r--r-- | src/macros.hpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/macros.hpp b/src/macros.hpp index 9ba0e188..851f1ca3 100644 --- a/src/macros.hpp +++ b/src/macros.hpp @@ -95,6 +95,8 @@ #define UNREACHABLE() std::unreachable(); #endif +#if ISDEBUG + #define GLCALL(__CALL__) \ { \ __CALL__; \ @@ -105,6 +107,13 @@ } \ } +#else + +#define GLCALL(__CALL__) \ + { __CALL__; } + +#endif + #define HYPRUTILS_FORWARD(ns, name) \ namespace Hyprutils { \ namespace ns { \ |
