mirror of
https://github.com/ThrowTheSwitch/CMock.git
synced 2026-06-05 21:15:20 +00:00
Refactor calling of transform_inline_functions
- This way, @normalized_source will always be defined, which it should because we are referencing it a few lines down, thanks to @mvandervoord for the suggestion
This commit is contained in:
@@ -44,9 +44,11 @@ class CMockHeaderParser
|
||||
end
|
||||
end
|
||||
|
||||
if @treat_inlines == :include
|
||||
@normalized_source = transform_inline_functions(source)
|
||||
end
|
||||
@normalized_source = if (@treat_inlines == :include)
|
||||
transform_inline_functions(source)
|
||||
else
|
||||
''
|
||||
end
|
||||
|
||||
{ :includes => nil,
|
||||
:functions => @funcs,
|
||||
|
||||
Reference in New Issue
Block a user