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

Function add_error_handler

core/error/error_macros.cpp:68–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68void add_error_handler(ErrorHandlerList *p_handler) {
69 // If p_handler is already in error_handler_list
70 // we'd better remove it first then we can add it.
71 // This prevent cyclic redundancy.
72 remove_error_handler(p_handler);
73
74 _global_lock();
75
76 p_handler->next = error_handler_list;
77 error_handler_list = p_handler;
78
79 _global_unlock();
80}
81
82void remove_error_handler(const ErrorHandlerList *p_handler) {
83 _global_lock();

Callers 7

execute_test_codeMethod · 0.85
RemoteDebuggerMethod · 0.85
EditorLogMethod · 0.85
_update_previewMethod · 0.85
EditorToasterMethod · 0.85
initializeMethod · 0.85
ErrorDetectorMethod · 0.85

Calls 3

remove_error_handlerFunction · 0.85
_global_lockFunction · 0.85
_global_unlockFunction · 0.85

Tested by 2

execute_test_codeMethod · 0.68
ErrorDetectorMethod · 0.68