From 67e704a6b1aa140d00d8fe4040fc6e76e7cac2fb Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Sat, 2 Aug 2008 13:50:28 -0400 Subject: c code generation: assert C indentation/nesting cancels out at appropriate points --- translate.h | 1 + 1 file changed, 1 insertion(+) diff --git a/translate.h b/translate.h index 6c8b4785..9921acd5 100644 --- a/translate.h +++ b/translate.h @@ -33,6 +33,7 @@ public: std::ostream& newline (int indent = 0); void indent (int indent = 0); + void assert_0_indent () { assert (tablevel == 0); } std::ostream& line(); std::ostream::pos_type tellp() { return o.tellp(); } -- cgit