summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/texfile.h
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/utils/asymptote/texfile.h')
-rw-r--r--Build/source/utils/asymptote/texfile.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/Build/source/utils/asymptote/texfile.h b/Build/source/utils/asymptote/texfile.h
index 5980cf51e16..d7adf0087de 100644
--- a/Build/source/utils/asymptote/texfile.h
+++ b/Build/source/utils/asymptote/texfile.h
@@ -151,7 +151,8 @@ class texfile : public psfile {
bbox box;
bool inlinetex;
double Hoffset;
-
+ int level;
+
public:
string texengine;
@@ -179,6 +180,12 @@ public:
void endraw();
+ void begingroup() {++level;}
+
+ void endgroup() {--level;}
+
+ bool toplevel() {return level == 0;}
+
void writepair(pair z) {
*out << z;
}