call_sv takes everything on the stack back to the last mark as the args for the function call. Even with no args, you need to push a mark.int record( SV *m ) { PUSHMARK(SP); XPUSHs(m); PUTBACK; call_sv( g_rec, G_VOID ); return 0; }
Dave.
In reply to Re^7: panic: memory wrap
by dave_the_m
in thread panic: memory wrap
by BrowserUk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |