Navigation Menu

Skip to content

Commit

Permalink
Change a NSException from exceptionWithName: to raise:. Closes #20.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnezang committed Apr 25, 2011
1 parent 862fa4d commit e1cb174
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion JSONKit.m
Expand Up @@ -2790,7 +2790,7 @@ - (id)serializeObject:(id)object options:(JKSerializeOptionFlags)optionFlags enc
id returnObject = NULL; id returnObject = NULL;


if(encodeState != NULL) { [self releaseState]; } 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; } if((error != NULL) && (*error != NULL)) { *error = NULL; }


Expand Down

0 comments on commit e1cb174

Please sign in to comment.