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