commit | 083fd26948e68c4685b92f606abf418731f24d0d | [log] [tgz] |
---|---|---|
author | Shinichiro Hamaji <shinichiro.hamaji@gmail.com> | Sat Apr 09 12:28:34 2016 +0900 |
committer | Shinichiro Hamaji <shinichiro.hamaji@gmail.com> | Sat Apr 09 12:32:55 2016 +0900 |
tree | 010bb9c81a00dda024be5e30dc42122e17616948 | |
parent | a5b193cd7cdcc1bce513e1ce7175583381cad8dc [diff] [blame] |
[C++] Error for missing endif A fix for https://github.com/google/kati/issues/55
diff --git a/parser.cc b/parser.cc index 4b4012e..96b8ba3 100644 --- a/parser.cc +++ b/parser.cc
@@ -87,6 +87,9 @@ l_ = e + 1; } + + if (!if_stack_.empty()) + ERROR("%s:%d: *** missing `endif'.", loc_.filename, loc_.lineno + 1); } static void Init() {