summaryrefslogtreecommitdiffstats
path: root/translate.h
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@elastic.org>2008-08-02 13:50:28 -0400
committerFrank Ch. Eigler <fche@elastic.org>2008-08-02 13:51:32 -0400
commit67e704a6b1aa140d00d8fe4040fc6e76e7cac2fb (patch)
tree37cb15248a2b306844788d61263c7fbd3f7732d0 /translate.h
parente014982dda6c78a278e92307b9121c5a0a77ed43 (diff)
downloadsystemtap-steved-67e704a6b1aa140d00d8fe4040fc6e76e7cac2fb.tar.gz
systemtap-steved-67e704a6b1aa140d00d8fe4040fc6e76e7cac2fb.tar.xz
systemtap-steved-67e704a6b1aa140d00d8fe4040fc6e76e7cac2fb.zip
c code generation: assert C indentation/nesting cancels out at appropriate points
Diffstat (limited to 'translate.h')
-rw-r--r--translate.h1
1 files changed, 1 insertions, 0 deletions
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(); }