commit | 89f6a2ba8c2844db8ff5b539df469c2239568874 | [log] [tgz] |
---|---|---|
author | Shinichiro Hamaji <shinichiro.hamaji@gmail.com> | Sat Apr 09 12:32:23 2016 +0900 |
committer | Shinichiro Hamaji <shinichiro.hamaji@gmail.com> | Sat Apr 09 12:33:10 2016 +0900 |
tree | f6a03f36ebf0e6ccba06297cc548e24681e5efe0 | |
parent | 083fd26948e68c4685b92f606abf418731f24d0d [diff] [blame] |
[C++] Error for missing endef A fix for https://github.com/google/kati/issues/55
diff --git a/parser.cc b/parser.cc index 96b8ba3..e88a9d9 100644 --- a/parser.cc +++ b/parser.cc
@@ -90,6 +90,9 @@ if (!if_stack_.empty()) ERROR("%s:%d: *** missing `endif'.", loc_.filename, loc_.lineno + 1); + if (!define_name_.empty()) + ERROR("%s:%d: *** missing `endef', unterminated `define'.", + loc_.filename, define_start_line_); } static void Init() {