ObjFW  Diff

Differences From Artifact [ad6038421d]:

To Artifact [b294176893]:


21
22
23
24
25
26
27
28

29
30
31
32
33
34
35
36
37
38

39
40
41
42
21
22
23
24
25
26
27

28
29
30
31
32
33
34
35
36
37

38

39
40
41







-
+









-
+
-



#include <stdlib.h>

#include "ObjFW_RT.h"
#include "private.h"

static objc_enumeration_mutation_handler enumeration_mutation_handler = NULL;

void __saveds
void
objc_enumerationMutation(id obj)
{
	if (enumeration_mutation_handler != NULL)
		enumeration_mutation_handler(obj);
	else
		OBJC_ERROR("Object was mutated during enumeration!");
}

void
objc_setEnumerationMutationHandler(
objc_setEnumerationMutationHandler(objc_enumeration_mutation_handler handler)
    objc_enumeration_mutation_handler handler OBJC_M68K_REG("a0"))
{
	enumeration_mutation_handler = handler;
}