mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
Add print_verbose to print to stdout only in verbose mode
Equivalent of the cumbersome: if (OS::get_singleton()->is_stdout_verbose()) print_line(msg);
This commit is contained in:
parent
34e58fd831
commit
de59fe04e7
22 changed files with 68 additions and 123 deletions
|
@ -2118,11 +2118,7 @@ Error CSharpScript::reload(bool p_keep_state) {
|
|||
|
||||
if (script_class) {
|
||||
#ifdef DEBUG_ENABLED
|
||||
if (OS::get_singleton()->is_stdout_verbose()) {
|
||||
OS::get_singleton()->print(String("Found class " + script_class->get_namespace() + "." +
|
||||
script_class->get_name() + " for script " + get_path() + "\n")
|
||||
.utf8());
|
||||
}
|
||||
print_verbose("Found class " + script_class->get_namespace() + "." + script_class->get_name() + " for script " + get_path());
|
||||
#endif
|
||||
|
||||
tool = script_class->has_attribute(CACHED_CLASS(ToolAttribute));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue