1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Change print_line() to use any number of Variants

This commit is contained in:
kobewi
2021-10-07 15:40:48 +02:00
parent 8afd2171d1
commit 31012fd060
3 changed files with 16 additions and 4 deletions

View File

@@ -69,7 +69,7 @@ void remove_print_handler(PrintHandlerList *p_handler) {
ERR_FAIL_COND(l == nullptr);
}
void print_line(String p_string) {
void __print_line(String p_string) {
if (!_print_line_enabled) {
return;
}
@@ -108,3 +108,7 @@ void print_verbose(String p_string) {
print_line(p_string);
}
}
String stringify_variants(Variant p_var) {
return p_var.operator String();
}