diff options
author | Marc Gilleron <marc.gilleron@gmail.com> | 2022-04-09 00:45:34 +0100 |
---|---|---|
committer | Marc Gilleron <marc.gilleron@gmail.com> | 2022-04-09 00:45:34 +0100 |
commit | cc29d39800142fe2fe9fdd60481197d7c7d3d215 (patch) | |
tree | 2ef6984907dd883a997ef9604f7ee0bae2b33952 /core | |
parent | c630c2001dbe2e25e0d372bd22ce85cdc2822eb0 (diff) |
Changed print_line macro to a function
Diffstat (limited to 'core')
-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 669d2ea316..ebe77ceb16 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 |