@@ -618,16 +618,17 @@ M68K_ARG(objc_enumeration_mutation_handler_t, handler, a0) objc_setEnumerationMutationHandler(handler); } -void __saveds -glue_objc_zero_weak_references PPC_PARAMS(id value) +id __saveds +glue_objc_constructInstance PPC_PARAMS(Class class, void *bytes) { - M68K_ARG(id, value, a0) + M68K_ARG(Class, class, a0) + M68K_ARG(void *, bytes, a1) - objc_zero_weak_references(value); + return objc_constructInstance(class, bytes); } void __saveds glue_objc_exit(void) { @@ -716,5 +717,13 @@ M68K_ARG(objc_property_t, property, a0) M68K_ARG(const char *, name, a1) return property_copyAttributeValue(property, name); } + +void *__saveds +glue_objc_destructInstance PPC_PARAMS(id object) +{ + M68K_ARG(id, object, a0) + + return objc_destructInstance(object); +}