static int Test(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); LoopScrollView obj = (LoopScrollView)ToLua.CheckObject <LoopScrollView>(L, 1); int[] arg0 = ToLua.CheckNumberArray <int>(L, 2); obj.Test(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }