Add print_error function, akin to print_line

This commit is contained in:
George Marques 2017-11-14 20:01:45 -02:00
parent b44cb4e3b9
commit 1d12470a78
No known key found for this signature in database
GPG key ID: 046BD46A3201E43D
6 changed files with 25 additions and 6 deletions

View file

@ -642,7 +642,7 @@ void GDScriptFunctions::call(Function p_func, const Variant **p_args, int p_arg_
}
//str+="\n";
OS::get_singleton()->printerr("%s\n", str.utf8().get_data());
print_error(str);
r_ret = Variant();
} break;