From 5b98279f80164e68e2cde4e79cc6624a193254ef Mon Sep 17 00:00:00 2001 From: robvdveer Date: Tue, 30 Jul 2013 12:52:20 +0200 Subject: [PATCH] Consume optional macro at end of typedef declaration --- Parsing/GBObjectiveCParser.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Parsing/GBObjectiveCParser.m b/Parsing/GBObjectiveCParser.m index 3c2f1c31..a9ede3ca 100644 --- a/Parsing/GBObjectiveCParser.m +++ b/Parsing/GBObjectiveCParser.m @@ -508,6 +508,9 @@ - (BOOL)matchTypedefEnumDefinition { [newEnum.constants registerConstant:newConstant]; }]; + //if there is a macro, consume it. + [self consumeMacro]; + //consume ; [self.tokenizer consume:1]; [self.store registerTypedefEnum:newEnum];