diff options
author | Juan Linietsky <juan@godotengine.org> | 2019-03-01 16:01:21 -0300 |
---|---|---|
committer | Juan Linietsky <juan@godotengine.org> | 2019-03-01 16:01:44 -0300 |
commit | 3f681b06812b8070a8ad790af79221ddf5c8c1e3 (patch) | |
tree | 9b91984d102a6e128c2231f1d418e6a66c69597c /core/error_macros.h | |
parent | e47915f7cd9336a37d08891a046a4bd778572a73 (diff) |
Clean up blend shape support in GLES2 and GLES3.
Diffstat (limited to 'core/error_macros.h')
-rw-r--r-- | core/error_macros.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/core/error_macros.h b/core/error_macros.h index 3aa8ed4596..ca5ccd24cf 100644 --- a/core/error_macros.h +++ b/core/error_macros.h @@ -310,6 +310,16 @@ extern bool _err_error_exists; _err_error_exists = false; \ } +#define ERR_PRINT_ONCE(m_string) \ + { \ + static bool first_print = true; \ + if (first_print) { \ + _err_print_error(FUNCTION_STR, __FILE__, __LINE__, m_string); \ + _err_error_exists = false; \ + first_print = false; \ + } \ + } + /** Print a warning string. */ @@ -325,6 +335,16 @@ extern bool _err_error_exists; _err_error_exists = false; \ } +#define WARN_PRINT_ONCE(m_string) \ + { \ + static bool first_print = true; \ + if (first_print) { \ + _err_print_error(FUNCTION_STR, __FILE__, __LINE__, m_string, ERR_HANDLER_WARNING); \ + _err_error_exists = false; \ + first_print = false; \ + } \ + } + #define WARN_DEPRECATED \ { \ static volatile bool warning_shown = false; \ |