summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-01-21 14:48:20 (GMT)
committerBrad King <brad.king@kitware.com>2009-01-21 14:48:20 (GMT)
commitbca1026250c5d2006a3829662b736660982e3a33 (patch)
treec403de025adbc273eb3ebe1f30b36ae849d72a43 /Source/cmMakefile.h
parentb8f5a934ecb83f0124be8485708d4d6d763682fd (diff)
downloadCMake-bca1026250c5d2006a3829662b736660982e3a33.zip
CMake-bca1026250c5d2006a3829662b736660982e3a33.tar.gz
CMake-bca1026250c5d2006a3829662b736660982e3a33.tar.bz2
ENH: Better error message for unclosed blocks
This centralizes construction of the error message for an unclosed logical block (if, foreach, etc.). We record the line at which each block is opened so it can be reported in the error message.
Diffstat (limited to 'Source/cmMakefile.h')
-rw-r--r--Source/cmMakefile.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmMakefile.h b/Source/cmMakefile.h
index c6b332b..d565b29 100644
--- a/Source/cmMakefile.h
+++ b/Source/cmMakefile.h
@@ -88,8 +88,7 @@ public:
/**
* Add a function blocker to this makefile
*/
- void AddFunctionBlocker(cmFunctionBlocker *fb)
- { this->FunctionBlockers.push_back(fb);}
+ void AddFunctionBlocker(cmFunctionBlocker* fb);
/**
* Remove the function blocker whose scope ends with the given command.