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

Fixed erroneous change.

This commit is contained in:
James Fraser
2018-11-16 20:25:10 +11:00
parent d0a214c584
commit 1c981604a1

View File

@@ -476,13 +476,17 @@ def define_fff_globals
putd "FFF_END_EXTERN_C"
}
puts
putd "#define FFF_RESET_HISTORY() fff.call_history_idx = 0;"
putd_backslash "#define FFF_RESET_HISTORY()"
indent {
putd_backslash "fff.call_history_idx = 0;"
putd "memset(fff.call_history, 0, sizeof(fff.call_history));"
}
puts
putd_backslash "#define REGISTER_CALL(function)"
indent {
putd_backslash "if(fff.call_history_idx < FFF_CALL_HISTORY_LEN)"
indent {
putd "fff.call_history[fff.call_history_idx++] = (fff_function_t)function;"
putd "fff.call_history[fff.call_history_idx++] = (fff_function_t)function;"
}
}
end