summaryrefslogtreecommitdiffstats
path: root/include/core
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2019-12-17 11:58:22 +0100
committerGitHub <noreply@github.com>2019-12-17 11:58:22 +0100
commit7cbb846417acf0154a786bcaee8a5b1d7b40df57 (patch)
tree3a30d0cd7edcc3c4cfb5d875bdeedcc1531beb3d /include/core
parent3ee07f652bbbe91630a8346e3fe39a05f0f1d76a (diff)
parent91e9262210fefde4197c363f75f6fcc068ebe7ab (diff)
downloadredot-cpp-7cbb846417acf0154a786bcaee8a5b1d7b40df57.tar.gz
Merge pull request #339 from Faless/fix/macro_namespace
Add godot namespace to references in Defs macros.
Diffstat (limited to 'include/core')
-rw-r--r--include/core/Defs.hpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/core/Defs.hpp b/include/core/Defs.hpp
index 2c7713c..fb0a18b 100644
--- a/include/core/Defs.hpp
+++ b/include/core/Defs.hpp
@@ -91,7 +91,7 @@ typedef float real_t;
// ERR/WARN macros
#ifndef WARN_PRINT
-#define WARN_PRINT(msg) Godot::print_warning(msg, __func__, __FILE__, __LINE__)
+#define WARN_PRINT(msg) godot::Godot::print_warning(msg, __func__, __FILE__, __LINE__)
#endif
#ifndef WARN_PRINTS
@@ -99,7 +99,7 @@ typedef float real_t;
#endif
#ifndef ERR_PRINT
-#define ERR_PRINT(msg) Godot::print_error(msg, __func__, __FILE__, __LINE__)
+#define ERR_PRINT(msg) godot::Godot::print_error(msg, __func__, __FILE__, __LINE__)
#endif
#ifndef ERR_PRINTS
@@ -107,19 +107,19 @@ typedef float real_t;
#endif
#ifndef FATAL_PRINT
-#define FATAL_PRINT(msg) ERR_PRINT(String("FATAL: ") + (msg))
+#define FATAL_PRINT(msg) ERR_PRINT(godot::String("FATAL: ") + (msg))
#endif
#ifndef ERR_MSG_INDEX
-#define ERR_MSG_INDEX(index, size) (String("Index ") + #index + "=" + String::num_int64(index) + " out of size (" + #size + "=" + String::num_int64(size) + ")")
+#define ERR_MSG_INDEX(index, size) (godot::String("Index ") + #index + "=" + godot::String::num_int64(index) + " out of size (" + #size + "=" + godot::String::num_int64(size) + ")")
#endif
#ifndef ERR_MSG_NULL
-#define ERR_MSG_NULL(param) (String("Parameter '") + #param + "' is null.")
+#define ERR_MSG_NULL(param) (godot::String("Parameter '") + #param + "' is null.")
#endif
#ifndef ERR_MSG_COND
-#define ERR_MSG_COND(cond) (String("Condition '") + #cond + "' is true.")
+#define ERR_MSG_COND(cond) (godot::String("Condition '") + #cond + "' is true.")
#endif
#ifndef ERR_FAIL_INDEX