Needed because some of the templates don't have Maybe as their info() type
| 56 | |
| 57 | // Needed because some of the templates don't have Maybe as their info() type |
| 58 | GJS_JSAPI_RETURN_CONVENTION |
| 59 | static inline bool gjs_wrapper_to_string_func(JSContext* cx, JSObject* this_obj, |
| 60 | const char* objtype, |
| 61 | const GI::BaseInfo& info, |
| 62 | GType gtype, |
| 63 | const void* native_address, |
| 64 | JS::MutableHandleValue ret) { |
| 65 | return gjs_wrapper_to_string_func( |
| 66 | cx, this_obj, objtype, mozilla::Some(info), gtype, native_address, ret); |
| 67 | } |
| 68 | |
| 69 | bool gjs_wrapper_throw_nonexistent_field(JSContext*, GType, |
| 70 | const char* field_name); |