mirror of
https://github.com/ThrowTheSwitch/CMock.git
synced 2026-06-05 21:15:20 +00:00
Unset argument detail before calling callback
This commit is contained in:
@@ -43,7 +43,8 @@ class CMockGeneratorPluginCallback
|
||||
end
|
||||
|
||||
def mock_implementation(function)
|
||||
" if (Mock.#{function[:name]}_CallbackFunctionPointer != NULL)\n {\n" +
|
||||
" if (Mock.#{function[:name]}_CallbackFunctionPointer != NULL)\n {\n" \
|
||||
" UNITY_SET_DETAIL(CMockString_#{function[:name]});\n" +
|
||||
if function[:return][:void?]
|
||||
" #{generate_call(function)};\n }\n"
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user