mirror of
https://github.com/ThrowTheSwitch/CMock.git
synced 2026-09-04 09:19:59 +00:00
make ret variable more unique to prevent collision with with code under test
This commit is contained in:
committed by
Dom Postorivo
parent
c1b1ff6350
commit
0cdc742538
@@ -60,9 +60,9 @@ class CMockGeneratorPluginCallback
|
||||
" UNITY_CLR_DETAILS();\n" \
|
||||
" return;\n }\n"
|
||||
else
|
||||
" #{function[:return][:type]} ret = #{generate_call(function)};\n" \
|
||||
" #{function[:return][:type]} cmock_cb_ret = #{generate_call(function)};\n" \
|
||||
" UNITY_CLR_DETAILS();\n" \
|
||||
" return ret;\n }\n"
|
||||
" return cmock_cb_ret;\n }\n"
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user