mirror of
https://github.com/ThrowTheSwitch/CMock.git
synced 2026-09-13 13:49:56 +00:00
Replace IgnoreMode with ExpectAnyArgsBool (no functional change).
IgnoreMode was used only for the ExpectAnyArgs plugin, and the semantics of it were backwards: - IgnoreMode = CMOCK_ARG_NONE means to ignore all arguments - IgnoreMode = CMOCK_ARG_ALL means to verify all arguments ExpectAnyArgsBool should make the purpose and semantics of this field clearer. Additionally, ExpectAnyArgs doesn't use FinalReturn for anything.
This commit is contained in:
@@ -57,7 +57,7 @@ class CMockGeneratorUtils
|
||||
lines << " cmock_call_instance->LineNumber = cmock_line;\n"
|
||||
lines << " cmock_call_instance->CallOrder = ++GlobalExpectCount;\n" if (@ordered and global_ordering_supported)
|
||||
lines << " cmock_call_instance->ExceptionToThrow = CEXCEPTION_NONE;\n" if (@cexception)
|
||||
lines << " cmock_call_instance->IgnoreMode = CMOCK_ARG_ALL;\n" if (@expect_any)
|
||||
lines << " cmock_call_instance->ExpectAnyArgsBool = (int)0;\n" if (@expect_any)
|
||||
lines
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user