Arthur Bergman <[EMAIL PROTECTED]> wrote:

> ... , then call into
> parrot using for example void Parrot_runcode(Parrot_Interp, int argc,
> char *argv[]);  Now my argument is that currently this does not work
> because the stacktop is not set! so what Parrot_runcode should do is in

> {
> if(!parrot->stacktop) {
> set_stacktop

When you call C<app_x_run_plugin> from different locations, this
wouldn't work. So the correct sequence is:

   app_x_run_plugin(...) {
       void stk;
       Parrot_init_stacktop(interp, &stk);
       Parrot_call(interp, the_sub, ...);
   }

> Arthur

leo

Reply via email to