mirror of
https://github.com/ThrowTheSwitch/CMock.git
synced 2026-08-09 04:37:50 +00:00
Handle headers which only have inline-function-declarations
This means there is NO opening bracket, since there are no struct declarations or inline function definitions.
This commit is contained in:
@@ -160,7 +160,7 @@ class CMockHeaderParser
|
||||
first_open_bracket = inline_function_match.post_match.index("{")
|
||||
first_semicolon = inline_function_match.post_match.index(";")
|
||||
|
||||
if first_semicolon < first_open_bracket
|
||||
if first_open_bracket.nil? or first_semicolon < first_open_bracket
|
||||
puts "DECLARATION, IGNORE"
|
||||
source = inline_function_match.pre_match + inline_function_match.post_match
|
||||
next
|
||||
|
||||
Reference in New Issue
Block a user