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