1
0
mirror of https://github.com/meekrosoft/fff synced 2026-01-23 00:15:59 +01:00

Clear argument history when RESET_FAKE called

This commit is contained in:
Mike Long
2011-02-19 20:47:31 +01:00
parent f12810c3f9
commit 6cbdb1c676
4 changed files with 220 additions and 12 deletions

View File

@@ -142,6 +142,7 @@ def output_reset_function(arg_count, is_value_function)
puts " void FUNCNAME##_reset(){ \\"
arg_count.times { |i|
puts " FUNCNAME##_arg#{i}_val = (ARG#{i}_TYPE) 0; \\"
puts " memset(FUNCNAME##_arg#{i}_history, 0, sizeof(FUNCNAME##_arg#{i}_history)); \\"
}
puts " FUNCNAME##_call_count = 0; \\"
puts " FUNCNAME##_return_val = 0; \\" unless not is_value_function