You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
327 B
Objective-C
14 lines
327 B
Objective-C
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include "objc/runtime.h"
|
|
|
|
// 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 occurred during enumeration.");
|
|
abort();
|
|
}
|
|
|