int emit_clear_objfiles_event (void) { if (evregpy_no_listeners_p (gdb_py_events.clear_objfiles)) return 0; gdbpy_ref<> event = create_clear_objfiles_event_object (); if (event != NULL) return evpy_emit_event (event.get (), gdb_py_events.clear_objfiles); return -1; }
int emit_clear_objfiles_event (void) { PyObject *event; if (evregpy_no_listeners_p (gdb_py_events.clear_objfiles)) return 0; event = create_clear_objfiles_event_object (); if (event) return evpy_emit_event (event, gdb_py_events.clear_objfiles); return -1; }