Lines 1-4
Link Here
|
1 |
--- Coro/State.xs.orig 2015-06-30 12:32:08 UTC |
1 |
--- Coro/State.xs.orig 2016-06-26 21:44:30 UTC |
2 |
+++ Coro/State.xs |
2 |
+++ Coro/State.xs |
3 |
@@ -102,6 +102,10 @@ static int cctx_max_idle = 4; |
3 |
@@ -102,6 +102,10 @@ static int cctx_max_idle = 4; |
4 |
#include "CoroAPI.h" |
4 |
#include "CoroAPI.h" |
Lines 11-13
Link Here
|
11 |
#ifdef USE_ITHREADS |
11 |
#ifdef USE_ITHREADS |
12 |
# if CORO_PTHREAD |
12 |
# if CORO_PTHREAD |
13 |
static void *coro_thx; |
13 |
static void *coro_thx; |
|
|
14 |
@@ -1412,7 +1416,11 @@ runops_trace (pTHX) |
15 |
PUSHMARK (SP); |
16 |
PUSHs (&PL_sv_yes); |
17 |
PUSHs (fullname); |
18 |
+#if PERL_VERSION_ATLEAST(5,24,0) |
19 |
+ PUSHs (CxHASARGS (cx) ? sv_2mortal (newRV_inc (PL_curpad[0])) : &PL_sv_undef); |
20 |
+#else |
21 |
PUSHs (CxHASARGS (cx) ? sv_2mortal (newRV_inc ((SV *)cx->blk_sub.argarray)) : &PL_sv_undef); |
22 |
+#endif |
23 |
PUTBACK; |
24 |
cb = hv_fetch ((HV *)SvRV (coro_current), "_trace_sub_cb", sizeof ("_trace_sub_cb") - 1, 0); |
25 |
if (cb) call_sv (*cb, G_KEEPERR | G_EVAL | G_VOID | G_DISCARD); |