bool gjs_struct_foreign_convert_to_g_argument(JSContext *context, JS::Value value, GIBaseInfo *interface_info, const char *arg_name, GjsArgumentType argument_type, GITransfer transfer, bool may_be_null, GArgument *arg) { GjsForeignInfo *foreign; foreign = gjs_struct_foreign_lookup(context, interface_info); if (!foreign) return false; if (!foreign->to_func(context, value, arg_name, argument_type, transfer, may_be_null, arg)) return false; return true; }
JSBool gjs_struct_foreign_convert_to_g_argument(JSContext *context, jsval value, GIBaseInfo *interface_info, const char *arg_name, GjsArgumentType argument_type, GITransfer transfer, gboolean may_be_null, GArgument *arg) { GjsForeignInfo *foreign; foreign = gjs_struct_foreign_lookup(context, interface_info); if (!foreign) return JS_FALSE; if (!foreign->to_func(context, value, arg_name, argument_type, transfer, may_be_null, arg)) return JS_FALSE; return JS_TRUE; }