| 711 | static float cb_elapsed_time = 0.0f; |
| 712 | |
| 713 | static int CallbackCounter(lua_State* L) |
| 714 | { |
| 715 | int top = lua_gettop(L); |
| 716 | const int handle = luaL_checkint(L, 1); |
| 717 | const double dt = luaL_checknumber(L, 2); |
| 718 | cb_callback_handle = (dmScript::HTimer)handle; |
| 719 | cb_elapsed_time += dt; |
| 720 | ++cb_callback_counter; |
| 721 | assert(top == lua_gettop(L)); |
| 722 | return 0; |
| 723 | } |
| 724 | |
| 725 | static const luaL_reg Module_methods[] = { |
| 726 | { "callback_counter", CallbackCounter}, |
nothing calls this directly
no test coverage detected