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

Function gjs_context_get_native_context

gjs/context.cpp:1259–1263  ·  view source on GitHub ↗

* gjs_context_get_native_context: * * Returns a pointer to the underlying native context. For SpiderMonkey, this * is a JSContext * */

Source from the content-addressed store, hash-verified

1257 * is a JSContext *
1258 */
1259void* gjs_context_get_native_context(GjsContext* self) {
1260 g_return_val_if_fail(GJS_IS_CONTEXT(self), nullptr);
1261 GjsContextPrivate* gjs = GjsContextPrivate::from_object(self);
1262 return gjs->context();
1263}
1264
1265static inline bool result_to_c(GErrorResult<> result, GError** error_out) {
1266 if (result.isOk())

Callers 10

current_js_contextFunction · 0.85
gjs_dumpstack_stringFunction · 0.85
GjsContextPrivateMethod · 0.85
gjs_profiler_newFunction · 0.85
gjs_coverage_constructedFunction · 0.85
gjs_coverage_disposeFunction · 0.85

Calls 1

contextMethod · 0.80