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/access.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/access.h')
-rw-r--r-- | Build/source/utils/asymptote/access.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Build/source/utils/asymptote/access.h b/Build/source/utils/asymptote/access.h index 440ca172aef..eabd5a527ac 100644 --- a/Build/source/utils/asymptote/access.h +++ b/Build/source/utils/asymptote/access.h @@ -16,6 +16,10 @@ #include "item.h" #include "vm.h" +namespace vm { + class callable; +} + namespace trans { class frame; @@ -72,6 +76,18 @@ public: void encode(action act, position pos, coder &e, frame *); }; +// Similar to bltinAccess, but works for any callable. +class callableAccess : public access { + vm::callable *f; + +public: + callableAccess(vm::callable *f) + : f(f) {} + + void encode(action act, position pos, coder &e); + void encode(action act, position pos, coder &e, frame *); +}; + // An access that puts a frame on the top of the stack. class frameAccess : public access { frame *f; |