Source/AIDictionaryDebug.m
branchadium-1.5.10.5
changeset 6003 6e8c6761ee0d
parent 2046 6bc140dd9efb
equal deleted inserted replaced
6002:66aac3254a5d 6003:6e8c6761ee0d
    55 {
    55 {
    56 	if (!object || !key) [AIDictionaryDebug breakpoint];
    56 	if (!object || !key) [AIDictionaryDebug breakpoint];
    57 	NSAssert3(object != nil, @"%@: Attempted to set %@ for %@",self,object,key);
    57 	NSAssert3(object != nil, @"%@: Attempted to set %@ for %@",self,object,key);
    58 	NSAssert3(key != nil, @"%@: Attempted to set %@ for %@",self,object,key);
    58 	NSAssert3(key != nil, @"%@: Attempted to set %@ for %@",self,object,key);
    59 
    59 
    60 	method_invoke(self, class_getInstanceMethod([AIDictionaryDebug class], @selector(setObject:forKey:)), object, key);
    60     static void (*_setObjectForKey_method_invoke)(id, Method, id, id) = (void (*)(id, Method, id, id)) method_invoke;
       
    61 	_setObjectForKey_method_invoke(self, class_getInstanceMethod([AIDictionaryDebug class], @selector(setObject:forKey:)), object, key);
    61 }
    62 }
    62 
    63 
    63 - (void)removeObjectForKey:(id)key
    64 - (void)removeObjectForKey:(id)key
    64 {
    65 {
    65 	if (!key) [AIDictionaryDebug breakpoint];
    66 	if (!key) [AIDictionaryDebug breakpoint];
    66 	NSAssert1(key != nil, @"%@: Attempted to remove a nil key",self);
    67 	NSAssert1(key != nil, @"%@: Attempted to remove a nil key",self);
    67 
    68 
    68 	method_invoke(self, class_getInstanceMethod([AIDictionaryDebug class], @selector(removeObjectForKey:)), key);
    69     static void (*_removeObjectForKey_method_invoke)(id, Method, id) = (void (*)(id, Method, id)) method_invoke;
       
    70 	_removeObjectForKey_method_invoke(self, class_getInstanceMethod([AIDictionaryDebug class], @selector(removeObjectForKey:)), key);
    69 }
    71 }
    70 
    72 
    71 #endif
    73 #endif
    72 @end
    74 @end