Function

objc_enumerationMutation

Inserted by the compiler when a mutation is detected during a foreach iteration.

Declaration

void objc_enumerationMutation(id obj);

Parameters

obj

The object being mutated.

Discussion

The compiler inserts this function when it detects that an object is mutated during a foreach iteration. The function is called when a mutation occurs, and the enumeration mutation handler is enacted if it is set up (via the objc_setEnumerationMutationHandler function). If the handler is not set up, a fatal error occurs.

See Also

Related Symbols

objc_setEnumerationMutationHandler

Sets the current mutation handler.