[pre-commit.ci] pre-commit autoupdate (#1096)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
71f6da2722
commit
958cdb8206
@@ -72,12 +72,14 @@ void checkError(const char *cmd, const char *file, int line) {
|
||||
}
|
||||
|
||||
#ifndef NDEBUG
|
||||
#define GL_CHECK_ERROR(cmd) \
|
||||
([&]() { \
|
||||
struct __MBGL_C_E { \
|
||||
~__MBGL_C_E() noexcept(false) { checkError(#cmd, __FILE__, __LINE__); } \
|
||||
} __MBGL_C_E; \
|
||||
return cmd; \
|
||||
#define GL_CHECK_ERROR(cmd) \
|
||||
([&]() { \
|
||||
struct __MBGL_C_E { \
|
||||
~__MBGL_C_E() noexcept(false) { \
|
||||
checkError(#cmd, __FILE__, __LINE__); \
|
||||
} \
|
||||
} __MBGL_C_E; \
|
||||
return cmd; \
|
||||
}())
|
||||
#else
|
||||
#define GL_CHECK_ERROR(cmd) (cmd)
|
||||
|
||||
Reference in New Issue
Block a user