private static int SwitchLogin(IntPtr L) { int result; try { ToLua.CheckArgsCount(L, 1); SDKInterface sDKInterface = (SDKInterface)ToLua.CheckObject(L, 1, typeof(SDKInterface)); sDKInterface.SwitchLogin(); result = 0; } catch (Exception e) { result = LuaDLL.toluaL_exception(L, e, null); } return(result); }