Permalink
Browse files

Change a NSException from exceptionWithName: to raise:. Closes #20.

  • Loading branch information...
1 parent 862fa4d commit e1cb174753ae0a5e4a549350c6f697a912216437 @johnezang committed Apr 25, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 JSONKit.m
View
@@ -2790,7 +2790,7 @@ - (id)serializeObject:(id)object options:(JKSerializeOptionFlags)optionFlags enc
id returnObject = NULL;
if(encodeState != NULL) { [self releaseState]; }
- if((encodeState = (struct JKEncodeState *)calloc(1UL, sizeof(JKEncodeState))) == NULL) { [NSException exceptionWithName:NSMallocException reason:@"Unable to allocate state structure." userInfo:NULL]; return(NULL); }
+ if((encodeState = (struct JKEncodeState *)calloc(1UL, sizeof(JKEncodeState))) == NULL) { [NSException raise:NSMallocException format:@"Unable to allocate state structure."]; return(NULL); }
if((error != NULL) && (*error != NULL)) { *error = NULL; }

0 comments on commit e1cb174

Please sign in to comment.