summaryrefslogtreecommitdiff
path: root/Source/cmExecutionStatus.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-03-07 08:40:36 -0500
committerBrad King <brad.king@kitware.com>2008-03-07 08:40:36 -0500
commit680104a490250f7b56b67aa3cbb7c113d997e93c (patch)
tree52af6beb6a876f03a1205c050ad8295e338ca573 /Source/cmExecutionStatus.h
parent41a59e211ef6b0c9c839545661579934ce9415c1 (diff)
downloadcmake-680104a490250f7b56b67aa3cbb7c113d997e93c.tar.gz
ENH: New format for warning and error messages
- Add cmMakefile methods IssueError and IssueWarning - Maintain an explicit call stack in cmMakefile - Include context/call-stack info in messages - Nested errors now unwind the call stack - Use new mechanism for policy warnings and errors - Improve policy error message - Include cmExecutionStatus pointer in call stack so that errors deeper in the C++ stack under a command invocation will become errors for the command
Diffstat (limited to 'Source/cmExecutionStatus.h')
-rw-r--r--Source/cmExecutionStatus.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/Source/cmExecutionStatus.h b/Source/cmExecutionStatus.h
index 66a567ebd3..bc1a579376 100644
--- a/Source/cmExecutionStatus.h
+++ b/Source/cmExecutionStatus.h
@@ -42,12 +42,19 @@ public:
{ return this->BreakInvoked; }
virtual void Clear()
- { this->ReturnInvoked = false; this->BreakInvoked = false; }
+ {
+ this->ReturnInvoked = false;
+ this->BreakInvoked = false;
+ this->NestedError = false;
+ }
+ virtual void SetNestedError(bool val) { this->NestedError = val; }
+ virtual bool GetNestedError() { return this->NestedError; }
protected:
bool ReturnInvoked;
bool BreakInvoked;
+ bool NestedError;
};
#endif