| 556 | } |
| 557 | |
| 558 | static dmScript::HTimerWorld CheckTimerWorld(lua_State* L) |
| 559 | { |
| 560 | dmScript::HTimerWorld timer_world = GetTimerWorld(L); |
| 561 | if (timer_world == 0x0) |
| 562 | { |
| 563 | luaL_error(L, "Unable to trigger callback, the lua context does not have a timer world"); |
| 564 | return 0; |
| 565 | } |
| 566 | return timer_world; |
| 567 | } |
| 568 | |
| 569 | /*# create a timer |
| 570 | * Adds a timer and returns a unique handle. |
no test coverage detected