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:
@@ -73,7 +73,6 @@ void StringName::cleanup() {
|
||||
_Data *d = _table[i];
|
||||
lost_strings++;
|
||||
if (OS::get_singleton()->is_stdout_verbose()) {
|
||||
|
||||
if (d->cname) {
|
||||
print_line("Orphan StringName: " + String(d->cname));
|
||||
} else {
|
||||
@@ -85,8 +84,8 @@ void StringName::cleanup() {
|
||||
memdelete(d);
|
||||
}
|
||||
}
|
||||
if (OS::get_singleton()->is_stdout_verbose() && lost_strings) {
|
||||
print_line("StringName: " + itos(lost_strings) + " unclaimed string names at exit.");
|
||||
if (lost_strings) {
|
||||
print_verbose("StringName: " + itos(lost_strings) + " unclaimed string names at exit.");
|
||||
}
|
||||
lock->unlock();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user