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:50:28 -0400
commit32cc940e7d1a12f3feb63fee3e7712a0a2d1e993 (patch)
tree3fc029e31aae3439ed6c3fc8172bfa6d88034254 /translate.h
parentf118f0abe96f2668b1969f4691dfaed36e2a8917 (diff)
downloadsystemtap-steved-32cc940e7d1a12f3feb63fee3e7712a0a2d1e993.tar.gz
systemtap-steved-32cc940e7d1a12f3feb63fee3e7712a0a2d1e993.tar.xz
systemtap-steved-32cc940e7d1a12f3feb63fee3e7712a0a2d1e993.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(); }