Unset argument detail before calling callback

This commit is contained in:
ml-physec
2025-07-04 16:32:37 +02:00
parent 204117cb59
commit 2bb9086214
2 changed files with 8 additions and 1 deletions
+2 -1
View File
@@ -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