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

Function gjs_context_eval_module

gjs/context.cpp:1288–1296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1286}
1287
1288bool gjs_context_eval_module(GjsContext* self, const char* identifier,
1289 uint8_t* exit_code, GError** error) {
1290 g_return_val_if_fail(GJS_IS_CONTEXT(self), false);
1291
1292 Gjs::AutoUnref<GjsContext> self_ref{self, Gjs::TakeOwnership{}};
1293
1294 GjsContextPrivate* gjs = GjsContextPrivate::from_object(self_ref);
1295 return result_to_c(gjs->eval_module(identifier, exit_code), error);
1296}
1297
1298bool gjs_context_register_module(GjsContext* self, const char* identifier,
1299 const char* uri, GError** error) {

Calls 2

result_to_cFunction · 0.85
eval_moduleMethod · 0.80