Export objc_enumerationMutation() function.

main
Frederik Seiffert 5 years ago committed by David Chisnall
parent 06da6a91c3
commit 2d976b61e2

@ -4,6 +4,7 @@
// This function is exported as a weak symbol to enable GNUstep or some other
// framework to replace it trivially
OBJC_PUBLIC
void __attribute__((weak)) objc_enumerationMutation(id obj)
{
fprintf(stderr, "Mutation occured during enumeration.");

@ -1150,6 +1150,14 @@ id object_getPrototype_np(id object);
OBJC_PUBLIC
int objc_set_apple_compatible_objcxx_exceptions(int newValue) OBJC_NONPORTABLE;
/**
* This function is inserted by the compiler when a mutation is detected during
* a foreach iteration. It is exported as a weak symbol to enable GNUstep or
* some other framework to replace it trivially.
*/
OBJC_PUBLIC
void __attribute__((weak)) objc_enumerationMutation(id obj);
#define _C_ID '@'
#define _C_CLASS '#'

Loading…
Cancel
Save