diff options
author | Nickolai Korshunov <n.a.korshunov@gmail.com> | 2018-04-25 11:40:49 +0300 |
---|---|---|
committer | Nickolai Korshunov <n.a.korshunov@gmail.com> | 2018-04-25 11:40:49 +0300 |
commit | ef37d8d76e45a8249f34e66dfcc80954fecd5981 (patch) | |
tree | 2c155a6f9107b21474e9f1adcb0d4b752bb2e7bc /include/core/GodotGlobal.hpp | |
parent | 876715b610a52749e5cc7824122f892dd430ffab (diff) | |
parent | 68ba815bc5c9ffa9494511f9feb8ea36a95369d7 (diff) | |
download | redot-cpp-ef37d8d76e45a8249f34e66dfcc80954fecd5981.tar.gz |
Merge branch 'master' of https://github.com/GodotNativeTools/godot-cpp
Diffstat (limited to 'include/core/GodotGlobal.hpp')
-rw-r--r-- | include/core/GodotGlobal.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/core/GodotGlobal.hpp b/include/core/GodotGlobal.hpp index 7d28dba..a913359 100644 --- a/include/core/GodotGlobal.hpp +++ b/include/core/GodotGlobal.hpp @@ -3,6 +3,7 @@ #include <gdnative_api_struct.gen.h> #include "String.hpp" +#include "Array.hpp" namespace godot { @@ -20,6 +21,11 @@ public: static void gdnative_init(godot_gdnative_init_options *o); static void gdnative_terminate(godot_gdnative_terminate_options *o); static void nativescript_init(void *handle); + + template <class... Args> + static void print(const String& fmt, Args... values) { + print(fmt.format(Array::make(values...))); + } }; |