luat_lib_timer.c 378 B

1234567891011121314151617181920212223
  1. #include "luat_base.h"
  2. #include "luat_log.h"
  3. static int l_timer_start(lua_State *L) {
  4. return 0;
  5. }
  6. static int l_timer_stop(lua_State *L) {
  7. return 0;
  8. }
  9. static const luaL_Reg reg_timer[] =
  10. {
  11. { "start" , l_timer_start },
  12. { "stop" , l_timer_stop },
  13. { NULL, NULL }
  14. };
  15. LUAMOD_API int luaopen_timer( lua_State *L ) {
  16. luaL_newlib(L, reg_timer);
  17. return 1;
  18. }