develooper Front page | perl.perl6.internals | Postings from April 2004

Re: cvs commit: parrot/src mmd.c

Thread Previous
From:
Leopold Toetsch
Date:
April 29, 2004 11:22
Subject:
Re: cvs commit: parrot/src mmd.c
Message ID:
200404291750.i3THoWt16193@thu8.leo.home
Dan Sugalski <dan@sidhe.org> wrote:

> It's not guaranteed anywhere, so having a fallback is definitely in
> order. It's distinctly possible we'll find compilers that flat-out
> won't allow us to do this, in which case we'll need a Plan B as
> fallback.

Plan B is a bit more expensiv but of course doable:

#if FUNCS_ARENT_ALIGNED
  if (is_pmc_ptr(interpreter, real_function)) {
    // go invoke it
  }
  else
    (orig_real_function)(aaargs);
  }
#else
  ...


leo

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About