mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
Store the instance using the correct key in the thread dictionary.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@17185 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
eb078bc0f9
commit
8e70ff7b10
2 changed files with 12 additions and 1 deletions
|
@ -42,6 +42,11 @@
|
|||
* source file, the position within that file, and the name of the
|
||||
* ObjC method or C function in which the assertion failed.
|
||||
* </p>
|
||||
* <p>An NSAssertionHandler instance is created on demand for each thread
|
||||
* and is stored in the thread's dictionary under the key NSAssertionHandler.
|
||||
* A custom NSAssertionHandler can be used by adding it to the thread
|
||||
* dictionary under this key.
|
||||
* </p>
|
||||
* The assertion macros are:
|
||||
* NSAssert(), NSCAssert(),
|
||||
* NSAssert1(), NSCAssert1(),
|
||||
|
@ -54,7 +59,7 @@
|
|||
@implementation NSAssertionHandler
|
||||
|
||||
/* Key for thread dictionary. */
|
||||
static NSString *dict_key = @"_NSAssertionHandler";
|
||||
static NSString *dict_key = @"NSAssertionHandler";
|
||||
|
||||
/**
|
||||
* Returns the assertion handler object for the current thread.<br />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue