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

Function remove_print_handler

core/string/print_string.cpp:58–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58void remove_print_handler(const PrintHandlerList *p_handler) {
59 _global_lock();
60
61 PrintHandlerList *prev = nullptr;
62 PrintHandlerList *l = print_handler_list;
63
64 while (l) {
65 if (l == p_handler) {
66 if (prev) {
67 prev->next = l->next;
68 } else {
69 print_handler_list = l->next;
70 }
71 break;
72 }
73 prev = l;
74 l = l->next;
75 }
76 //OS::get_singleton()->print("print handler list is %p\n",print_handler_list);
77
78 _global_unlock();
79 ERR_FAIL_NULL(l);
80}
81
82void __print_line(const String &p_string) {
83 if (!CoreGlobals::print_line_enabled) {

Callers 3

execute_test_codeMethod · 0.85
~RemoteDebuggerMethod · 0.85
~EditorNodeMethod · 0.85

Calls 2

_global_lockFunction · 0.85
_global_unlockFunction · 0.85

Tested by 1

execute_test_codeMethod · 0.68