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

Register function call when fake is called

This commit is contained in:
Mike Long
2011-01-01 21:03:20 +01:00
parent 71c66bfa3a
commit f923a5ad62
3 changed files with 50 additions and 0 deletions

View File

@@ -119,6 +119,8 @@ def output_function_body(arg_count, is_value_function)
arg_count.times { |i| puts " FUNCNAME##_arg#{i}_val = arg#{i}; \\" }
# update call count
puts " FUNCNAME##_call_count++; \\"
#register call
puts " REGISTER_CALL(FUNCNAME); \\"
# return something if value function
puts " return FUNCNAME##_return_val; \\" unless not is_value_function
end