Differences From Artifact [9e8c6288b3]:
- File src/exceptions/OFMemoryNotPartOfObjectException.h — part of check-in [e1eea29286] at 2011-03-24 16:09:40 on branch trunk — Split OFExceptions.{h,m} into one file per exception. (user: js, size: 1498) [annotate] [blame] [check-ins using]
To Artifact [f6a34da674]:
- File
src/exceptions/OFMemoryNotPartOfObjectException.h
— part of check-in
[e1e7ffa903]
at
2011-09-22 23:25:42
on branch trunk
— Exceptions are now autoreleased.
This is safe as an "exception loop" can't happen, since if allocating
an exception fails, it throws an OFAllocFailedException which is
preallocated and can always be thrown.So, the worst case would be that an autorelease of an exception fails,
triggering an OFOutOfMemoryException for which there is no memory,
resulting in an OFAllocFailedException to be thrown. (user: js, size: 1503) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
29 30 31 32 33 34 35 | #endif /** * \param class_ The class of the object which caused the exception * \param ptr A pointer to the memory that is not part of the object * \return A new memory not part of object exception */ | | | | 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | #endif /** * \param class_ The class of the object which caused the exception * \param ptr A pointer to the memory that is not part of the object * \return A new memory not part of object exception */ + exceptionWithClass: (Class)class_ pointer: (void*)ptr; /** * Initializes an already allocated memory not part of object exception. * * \param class_ The class of the object which caused the exception * \param ptr A pointer to the memory that is not part of the object * \return An initialized memory not part of object exception |
︙ | ︙ |