static int StartCheckFps(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); Fps obj = (Fps)ToLua.CheckObject <Fps>(L, 1); obj.StartCheckFps(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }