MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / print_error

Function print_error

core/string/print_string.cpp:322–346  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

320}
321
322void print_error(const String &p_string) {
323 if (!CoreGlobals::print_error_enabled) {
324 return;
325 }
326
327 if (is_printing) {
328 __print_fallback(p_string, true);
329 return;
330 }
331
332 is_printing = true;
333
334 OS::get_singleton()->printerr("%s\n", p_string.utf8().get_data());
335
336 _global_lock();
337 PrintHandlerList *l = print_handler_list;
338 while (l) {
339 l->printfunc(l->userdata, p_string, true, false);
340 l = l->next;
341 }
342
343 _global_unlock();
344
345 is_printing = false;
346}
347
348bool is_print_verbose_enabled() {
349 return OS::get_singleton()->is_stdout_verbose();

Callers 8

print_unicode_errorMethod · 0.70
~RID_AllocMethod · 0.50
load_threaded_getMethod · 0.50
printerrMethod · 0.50
finishMethod · 0.50
compare_valueFunction · 0.50
compare_dict_arrayFunction · 0.50
compare_sub_dict_arrayFunction · 0.50

Calls 6

__print_fallbackFunction · 0.85
_global_lockFunction · 0.85
_global_unlockFunction · 0.85
printerrMethod · 0.45
get_dataMethod · 0.45
utf8Method · 0.45

Tested by

no test coverage detected