mirror of
https://github.com/ThrowTheSwitch/CMock.git
synced 2026-08-30 14:59:58 +00:00
Better handling of inline functions with declaration in header
This commit is contained in:
@@ -112,6 +112,13 @@ class CMockHeaderParser
|
||||
end
|
||||
end
|
||||
|
||||
if (@treat_inline == :include)
|
||||
# Functions having "{ }" at this point are/were inline functions,
|
||||
# User wants them in so 'disguise' them as normal functions with the ";"
|
||||
source.gsub!("{ }", ";")
|
||||
end
|
||||
|
||||
|
||||
# remove function definitions by stripping off the arguments right now
|
||||
source.gsub!(/\([^\)]*\)\s*\{[^\}]*\}/m, ";")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user