static public int popAllWindow(IntPtr l) { try { int argc = LuaDLL.lua_gettop(l); if (argc == 1) { LWindowManager self = (LWindowManager)checkSelf(l); self.popAllWindow(); pushValue(l, true); return(1); } else if (argc == 2) { LWindowManager self = (LWindowManager)checkSelf(l); WindowHierarchy a1; checkEnum(l, 2, out a1); self.popAllWindow(a1); pushValue(l, true); return(1); } pushValue(l, false); LuaDLL.lua_pushstring(l, "No matched override function to call"); return(2); } catch (Exception e) { return(error(l, e)); } }