Skip to content
This repository has been archived by the owner on Jun 9, 2018. It is now read-only.

Commit

Permalink
logical VTABLES are gone, see http://trac.parrot.org/parrot/changeset…
Browse files Browse the repository at this point in the history
  • Loading branch information
fperrad committed Sep 16, 2010
1 parent 50bc750 commit 0108744
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions dynext/pmc/luaany.pmc
@@ -1,5 +1,5 @@
/*
Copyright (C) 2006-2009, Parrot Foundation.
Copyright (C) 2006-2010, Parrot Foundation.
$Id$

=head1 Lua abstract base class
Expand Down Expand Up @@ -237,18 +237,16 @@ Throws an exception.

/*

=item C<PMC* logical_not(PMC *dest)>
=item C<void set_bool(INTVAL value)>

Common implementation

=cut

*/
VTABLE PMC* logical_not(PMC *dest) {
const INTVAL result = ! SELF.get_bool();
dest = Parrot_pmc_new(INTERP, dynpmc_LuaBoolean);
VTABLE_set_bool(INTERP, dest, result);
return dest;
VTABLE void set_bool(INTVAL value) {
Parrot_pmc_reuse(INTERP, SELF, dynpmc_LuaBoolean, 0);
SELF.set_bool(value);
}

/*
Expand Down

0 comments on commit 0108744

Please sign in to comment.