diff options
author | Karl Berry <karl@freefriends.org> | 2010-07-05 22:26:04 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2010-07-05 22:26:04 +0000 |
commit | 648027bec248a7b000741a507b507f6d89941ce5 (patch) | |
tree | ce3b82b43a8b17403eda43db782bbf2e5bf0e161 /Build/source/utils/asymptote/program.h | |
parent | 5ff8f96c8ab3bd3aeb8fed8d512c57134fb2a6cc (diff) |
asy 2.00
git-svn-id: svn://tug.org/texlive/trunk@19250 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/asymptote/program.h')
-rw-r--r-- | Build/source/utils/asymptote/program.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Build/source/utils/asymptote/program.h b/Build/source/utils/asymptote/program.h index c6e37562bc5..4e3e8e8f986 100644 --- a/Build/source/utils/asymptote/program.h +++ b/Build/source/utils/asymptote/program.h @@ -21,6 +21,8 @@ public: void encode(inst i); label begin(); label end(); + inst &back(); + void pop_back(); private: friend class label; typedef mem::vector<inst> code_t; @@ -64,6 +66,10 @@ inline program::label program::end() { return label(code.size(), this); } inline program::label program::begin() { return label(0, this); } +inline inst& program::back() +{ return code.back(); } +inline void program::pop_back() +{ return code.pop_back(); } inline void program::encode(inst i) { code.push_back(i); } inline inst& program::operator[](size_t n) |