diff options
author | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2022-02-17 10:18:04 +0200 |
---|---|---|
committer | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2022-02-17 10:18:04 +0200 |
commit | 65dc3e89c7fbd19a0bafb0eefa60b140c41ababe (patch) | |
tree | c7b80a705e17df7b9e7ea4a394a985240db1c882 /include/godot_cpp/core | |
parent | 6f9d3c31d09296008bc47c0df7f9365d9a7a0e1d (diff) | |
download | redot-cpp-65dc3e89c7fbd19a0bafb0eefa60b140c41ababe.tar.gz |
Add ERR_ macros variants using `String` messages.
Diffstat (limited to 'include/godot_cpp/core')
-rw-r--r-- | include/godot_cpp/core/error_macros.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/godot_cpp/core/error_macros.hpp b/include/godot_cpp/core/error_macros.hpp index 5a7f4e9..81ef733 100644 --- a/include/godot_cpp/core/error_macros.hpp +++ b/include/godot_cpp/core/error_macros.hpp @@ -32,14 +32,20 @@ #define GODOT_CPP_ERROR_MACROS_HPP #include <godot_cpp/core/defs.hpp> +#include <godot_cpp/variant/string.hpp> #include <cstdint> namespace godot { void _err_print_error(const char *p_function, const char *p_file, int p_line, const char *p_error, bool p_is_warning = false); +void _err_print_error(const char *p_function, const char *p_file, int p_line, const String &p_error, bool p_is_warning = false); void _err_print_error(const char *p_function, const char *p_file, int p_line, const char *p_error, const char *p_message, bool p_is_warning = false); +void _err_print_error(const char *p_function, const char *p_file, int p_line, const char *p_error, const String &p_message, bool p_is_warning = false); +void _err_print_error(const char *p_function, const char *p_file, int p_line, const String &p_error, const char *p_message, bool p_is_warning = false); +void _err_print_error(const char *p_function, const char *p_file, int p_line, const String &p_error, const String &p_message, bool p_is_warning = false); void _err_print_index_error(const char *p_function, const char *p_file, int p_line, int64_t p_index, int64_t p_size, const char *p_index_str, const char *p_size_str, const char *p_message = "", bool fatal = false); +void _err_print_index_error(const char *p_function, const char *p_file, int p_line, int64_t p_index, int64_t p_size, const char *p_index_str, const char *p_size_str, const String &p_message, bool fatal = false); // Used to strip debug messages in release mode #ifdef DEBUG_ENABLED |