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