diff --git a/ChangeLog b/ChangeLog index 7419abff7..3b1e4073b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2002-02-10 Michael Hanni + + * Source/NSObjCRuntime.m: changed NSAssert() to NSCAssert() from + last change. Also added NSException.h include to make compile + correctly and quietly. + 2002-02-10 Manuel Guesdon * Source/NSObject.m: changes to enable derived object KeyValueCoding diff --git a/Source/NSObjCRuntime.m b/Source/NSObjCRuntime.m index 4a5af4fd5..c753d4d02 100644 --- a/Source/NSObjCRuntime.m +++ b/Source/NSObjCRuntime.m @@ -26,6 +26,7 @@ #include #include +#include #include #include #include @@ -129,7 +130,7 @@ GSGetInstanceVariable(id obj, NSString *iVarName, void *data) return NO; } //This very highly unprobable value can be used as a marker - NSAssert(offset!=UINT_MAX,@"Bad Offset"); + NSCAssert(offset != UINT_MAX, @"Bad Offset"); memcpy(data, ((void*)obj) + offset, size); return YES; } @@ -146,7 +147,7 @@ GSSetInstanceVariable(id obj, NSString *iVarName, const void *data) return NO; } //This very highly unprobable value can be used as a marker - NSAssert(offset!=UINT_MAX,@"Bad Offset"); + NSCAssert(offset != UINT_MAX, @"Bad Offset"); memcpy(((void*)obj) + offset, data, size); return YES; }