Skip to content

Commit

Permalink
Add VTABLE_invoke preprocessing
Browse files Browse the repository at this point in the history
  • Loading branch information
bacek committed May 2, 2011
1 parent 287cc0f commit 271ece1
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions compilers/opsc/src/Ops/Compiler/Preprocessor.pm
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,22 @@ INIT {
PAST::Var.new(:name<0>, :scope<macro_arg>),
PAST::Var.new(:name<1>, :scope<macro_arg>),
);

%MACROS<VTABLE_invoke> := PAST::Op.new(
:pasttype<call>,
PAST::Var.new(
:scope<keyed_arrow>,
PAST::Var.new(
:scope<keyed_arrow>,
PAST::Var.new(:name<1>, :scope<macro_arg>),
"vtable",
),
"invoke",
),
PAST::Var.new(:name<0>, :scope<macro_arg>),
PAST::Var.new(:name<1>, :scope<macro_arg>),
PAST::Var.new(:name<2>, :scope<macro_arg>),
);
}

# Local Variables:
Expand Down

0 comments on commit 271ece1

Please sign in to comment.