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

Function param_value

gi/param.cpp:53–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51};
52
53[[nodiscard]]
54static GParamSpec* param_value(JSContext* cx, JS::HandleObject obj) {
55 if (!JS_InstanceOf(cx, obj, &gjs_param_class, nullptr))
56 return nullptr;
57
58 auto* priv = JS::GetMaybePtrFromReservedSlot<Param>(obj, POINTER);
59 return priv ? priv->get() : nullptr;
60}
61
62/*
63 * The *resolved out parameter, on success, should be false to indicate that id

Callers 3

param_resolveFunction · 0.85
gjs_g_param_from_paramFunction · 0.85
gjs_typecheck_paramFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected