diff options
author | Karl Berry <karl@freefriends.org> | 2011-05-28 02:18:52 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2011-05-28 02:18:52 +0000 |
commit | c59fe5fe4739f0c61560f05d4e42b4e552219b27 (patch) | |
tree | 8cf79e85e394b3177a28d374415840a4e0a025ad /Build/source/utils/asymptote/program.h | |
parent | 771db15706dbf3f4af8b630dcb15646a3e5fda00 (diff) |
asy 2.10
git-svn-id: svn://tug.org/texlive/trunk@22633 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, 4 insertions, 2 deletions
diff --git a/Build/source/utils/asymptote/program.h b/Build/source/utils/asymptote/program.h index 4e3e8e8f986..84fea7461e0 100644 --- a/Build/source/utils/asymptote/program.h +++ b/Build/source/utils/asymptote/program.h @@ -37,6 +37,7 @@ public: // interface public: //interface label& operator++(); label& operator--(); + bool defined() const; bool operator==(const label& right) const; bool operator!=(const label& right) const; inst& operator*() const; @@ -51,8 +52,7 @@ private: friend class program; }; -// Prints one instruction (including arguments) and returns how many -// positions in the code stream were shown. +// Prints one instruction (including arguments). void printInst(std::ostream& out, const program::label& code, const program::label& base); @@ -78,6 +78,8 @@ inline program::label& program::label::operator++() { ++where; return *this; } inline program::label& program::label::operator--() { --where; return *this; } +inline bool program::label::defined() const +{ return (code != 0); } inline bool program::label::operator==(const label& right) const { return (code == right.code) && (where == right.where); } inline bool program::label::operator!=(const label& right) const |