MCPcopy Create free account
hub / github.com/GNOME/gjs / gjs_exit

Function gjs_exit

modules/system.cpp:142–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140}
141
142static bool gjs_exit(JSContext* cx, unsigned argc, JS::Value* vp) {
143 JS::CallArgs args = JS::CallArgsFromVp(argc, vp);
144 int32_t ecode;
145 if (!gjs_parse_call_args(cx, "exit", args, "i", "ecode", &ecode))
146 return false;
147
148 GjsContextPrivate* gjs = GjsContextPrivate::from_cx(cx);
149 gjs->exit(ecode);
150 JS::ReportUncatchableException(cx);
151 return false;
152}
153
154static bool gjs_clear_date_caches(JSContext*, unsigned argc, JS::Value* vp) {
155 JS::CallArgs args = JS::CallArgsFromVp(argc, vp);

Callers

nothing calls this directly

Calls 2

gjs_parse_call_argsFunction · 0.85
exitMethod · 0.45

Tested by

no test coverage detected