mirror of
https://github.com/ThrowTheSwitch/CMock.git
synced 2026-08-25 04:29:57 +00:00
Merge branch 'master' into master
This commit is contained in:
@@ -79,4 +79,11 @@ class CMockGeneratorPluginCallback
|
||||
lines << " Mock.#{func_name}_CallbackBool = (int)0;\n"
|
||||
lines << " Mock.#{func_name}_CallbackFunctionPointer = Callback;\n}\n\n"
|
||||
end
|
||||
|
||||
def mock_verify(function)
|
||||
func_name = function[:name]
|
||||
" if (Mock.#{func_name}_CallbackFunctionPointer != NULL)\n {\n" \
|
||||
" call_instance = CMOCK_GUTS_NONE;\n" \
|
||||
" (void)call_instance;\n }\n"
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user