Skip to content

Commit

Permalink
[cage] Add remaining missing UNUSED(arg) declarations from dynpmc
Browse files Browse the repository at this point in the history
  • Loading branch information
Reini Urban committed Dec 11, 2012
1 parent 97eac13 commit 21e5c75
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/dynpmc/foo.pmc
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,21 @@
pmclass Foo dynpmc group foo_group provides scalar extends Integer auto_attrs {

VTABLE INTVAL get_integer() {
UNUSED(INTERP)
UNUSED(SELF)
return 42;
}

MULTI PMC* subtract(Integer value, PMC *dest) {
UNUSED(value)
if (!dest)
dest = Parrot_pmc_new(INTERP, SELF->vtable->base_type);
VTABLE_set_integer_native(INTERP, dest, 144);
return dest;
}

MULTI PMC* subtract(DEFAULT value, PMC *dest) {
UNUSED(value)
if (!dest)
dest = Parrot_pmc_new(INTERP, SELF->vtable->base_type);
VTABLE_set_integer_native(INTERP, dest, 244);
Expand Down
4 changes: 4 additions & 0 deletions src/dynpmc/rotest.pmc
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,16 @@
*/

pmclass ROTest dynpmc provides scalar extends Integer auto_attrs {

VTABLE void set_integer_native(INTVAL value) :read {
UNUSED(INTERP)
UNUSED(SELF)
UNUSED(value)
}

VTABLE INTVAL get_integer() :write {
UNUSED(INTERP)
UNUSED(SELF)
return 42;
}

Expand Down

0 comments on commit 21e5c75

Please sign in to comment.