int emit_exited_event (const LONGEST *exit_code, struct inferior *inf) { if (evregpy_no_listeners_p (gdb_py_events.exited)) return 0; gdbpy_ref<> event (create_exited_event_object (exit_code, inf)); if (event != NULL) return evpy_emit_event (event.get (), gdb_py_events.exited); return -1; }
int emit_exited_event (const LONGEST *exit_code, struct inferior *inf) { PyObject *event; if (evregpy_no_listeners_p (gdb_py_events.exited)) return 0; event = create_exited_event_object (exit_code, inf); if (event) return evpy_emit_event (event, gdb_py_events.exited); return -1; }