Permalink
Browse files

Ignore if enum is already defined.

  • Loading branch information...
1 parent 8aafacd commit b6aa5932f781755493983dbf2c7e404fde701958 @steipete steipete committed Aug 6, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 Model/GBStore.m
View
2 Model/GBStore.m
@@ -117,7 +117,7 @@ -(void)registerTypedefEnum:(GBTypedefEnumData *)typedefEnum
if ([_typedefEnums containsObject:typedefEnum]) return;
GBProtocolData *existingTypedef = [_typedefEnumsByName objectForKey:typedefEnum.nameOfEnum];
if (existingTypedef) {
- [NSException raise:@"Typedef with name %@ is already registered!", typedefEnum.nameOfEnum];
+ // Ignore typedef in already refined elsewhere.
return;
}
[_typedefEnums addObject:typedefEnum];

0 comments on commit b6aa593

Please sign in to comment.