diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-04-11 17:51:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-11 17:51:10 +0200 |
commit | df51e5fab0bbc64d1dfb64b75eec76c648ae8a60 (patch) | |
tree | 1b6936cf8f0109c4310939f4a3e914bc8b45a8f0 /core/string | |
parent | b936359e0792b4eb06290b59baefd57f551f6e1e (diff) | |
parent | cc29d39800142fe2fe9fdd60481197d7c7d3d215 (diff) |
Merge pull request #60046 from Zylann/print_line_function
Diffstat (limited to 'core/string')
-rw-r--r-- | core/string/print_string.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/core/string/print_string.h b/core/string/print_string.h index f19573ad45..f7d0f25030 100644 --- a/core/string/print_string.h +++ b/core/string/print_string.h @@ -61,6 +61,14 @@ extern bool _print_error_enabled; extern void __print_line(String p_string); extern void print_error(String p_string); extern void print_verbose(String p_string); -#define print_line(...) __print_line(stringify_variants(__VA_ARGS__)) + +inline void print_line(Variant v) { + __print_line(stringify_variants(v)); +} + +template <typename... Args> +void print_line(Variant p_var, Args... p_args) { + __print_line(stringify_variants(p_var, p_args...)); +} #endif // PRINT_STRING_H |