static int get_viewManager(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Nova.ViewControllerBase obj = (Nova.ViewControllerBase)o; Nova.ViewManager ret = obj.viewManager; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index viewManager on a nil value")); } }