mirror of
https://github.com/ThrowTheSwitch/CMock.git
synced 2026-09-12 21:29:57 +00:00
Fix whitespace errors, minimize unnecessary branching
This commit is contained in:
@@ -68,13 +68,12 @@ class CMockGeneratorPluginIgnore
|
|||||||
lines << "}\n\n"
|
lines << "}\n\n"
|
||||||
|
|
||||||
#add stop ignore function. it does not matter if there are any args
|
#add stop ignore function. it does not matter if there are any args
|
||||||
lines << "void #{function[:name]}_CMockStopIgnore(void)\n{\n"
|
lines << "void #{function[:name]}_CMockStopIgnore(void)\n {\n"
|
||||||
lines << " if(Mock.#{function[:name]}_IgnoreBool) {\n"
|
|
||||||
lines << " Mock.#{function[:name]}_IgnoreBool = (char)0;\n"
|
|
||||||
unless function[:return][:void?]
|
unless function[:return][:void?]
|
||||||
|
lines << " if(Mock.#{function[:name]}_IgnoreBool) \n"
|
||||||
lines << " Mock.#{function[:name]}_CallInstance = CMock_Guts_MemNext(Mock.#{function[:name]}_CallInstance);\n"
|
lines << " Mock.#{function[:name]}_CallInstance = CMock_Guts_MemNext(Mock.#{function[:name]}_CallInstance);\n"
|
||||||
end
|
end
|
||||||
lines << " }\n"
|
lines << " Mock.#{function[:name]}_IgnoreBool = (char)0;\n"
|
||||||
lines << "}\n\n"
|
lines << "}\n\n"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user