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

Function define_extra_error_properties

gi/struct.cpp:118–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116}
117
118static bool define_extra_error_properties(JSContext* cx, JS::HandleObject obj) {
119 StructBase* priv = StructBase::for_js(cx, obj);
120 if (priv->gtype() != G_TYPE_ERROR)
121 return true;
122 return gjs_define_error_properties(cx, obj);
123}
124
125/**
126 * StructInstance::new_for_c_struct:

Callers 1

new_for_c_structMethod · 0.85

Calls 2

gtypeMethod · 0.45

Tested by

no test coverage detected