mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Note that we want the mutation function exported
This commit is contained in:
parent
9b4965e100
commit
9236ef986a
1 changed files with 3 additions and 1 deletions
|
@ -86,8 +86,10 @@
|
|||
/* objc_enumerationMutation() is called whenever a collection mutates in the
|
||||
* middle of fast enumeration. We need to have this defined and linked into
|
||||
* any code that uses fast enumeration, so we define it in NSObject.h
|
||||
* This symbol is exported to take precedence over the weak symbol provided
|
||||
* by the runtime library.
|
||||
*/
|
||||
void objc_enumerationMutation(id obj)
|
||||
GS_EXPORT void objc_enumerationMutation(id obj)
|
||||
{
|
||||
[NSException raise: NSGenericException
|
||||
format: @"Collection %@ was mutated while being enumerated", obj];
|
||||
|
|
Loading…
Reference in a new issue