diff --git a/lib/cmock_header_parser.rb b/lib/cmock_header_parser.rb index 7fdce67..1c9a298 100644 --- a/lib/cmock_header_parser.rb +++ b/lib/cmock_header_parser.rb @@ -174,7 +174,7 @@ class CMockHeaderParser first_open_bracket = inline_function_match.post_match.index("{") first_semicolon = inline_function_match.post_match.index(";") - if first_open_bracket.nil? or first_semicolon < first_open_bracket + if first_open_bracket.nil? or (!first_semicolon.nil? and first_semicolon < first_open_bracket) puts "DECLARATION, IGNORE" source = inline_function_match.pre_match + inline_function_match.post_match next