summaryrefslogtreecommitdiffstats
path: root/Source/cmWhileCommand.h
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2006-05-18 17:50:01 (GMT)
committerKen Martin <ken.martin@kitware.com>2006-05-18 17:50:01 (GMT)
commit29a03db7ce5150c30610d4a9b0e7c6d38f923f35 (patch)
tree283a237abcb57f0a2af8b3a4f8f4c0019f190188 /Source/cmWhileCommand.h
parent095e975c812c7962fa865f04444ac489f1ee8643 (diff)
downloadCMake-29a03db7ce5150c30610d4a9b0e7c6d38f923f35.zip
CMake-29a03db7ce5150c30610d4a9b0e7c6d38f923f35.tar.gz
CMake-29a03db7ce5150c30610d4a9b0e7c6d38f923f35.tar.bz2
ENH: allow loose loop constructs
Diffstat (limited to 'Source/cmWhileCommand.h')
-rw-r--r--Source/cmWhileCommand.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmWhileCommand.h b/Source/cmWhileCommand.h
index 10c261c..e1f44eb 100644
--- a/Source/cmWhileCommand.h
+++ b/Source/cmWhileCommand.h
@@ -29,7 +29,7 @@
class cmWhileFunctionBlocker : public cmFunctionBlocker
{
public:
- cmWhileFunctionBlocker() {Executing = false;}
+ cmWhileFunctionBlocker() {Executing = false; Depth=0;}
virtual ~cmWhileFunctionBlocker() {}
virtual bool IsFunctionBlocked(const cmListFileFunction& lff,
cmMakefile &mf);
@@ -39,6 +39,8 @@ public:
std::vector<cmListFileArgument> Args;
std::vector<cmListFileFunction> Functions;
bool Executing;
+private:
+ int Depth;
};
/** \class cmWhileCommand