X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2Findirect.git;a=blobdiff_plain;f=indirect.xs;h=b19e11a929114d600a0fccb89489799975424e53;hp=1e640c8e86953c2b57fccc8b420a459e08e773d3;hb=a6e7df84c1196a8c6d12692a06d913a24c5d530a;hpb=12f5aa96d0f4d2275aafa29bc76c96a0d4f215a9 diff --git a/indirect.xs b/indirect.xs index 1e640c8..b19e11a 100644 --- a/indirect.xs +++ b/indirect.xs @@ -528,6 +528,7 @@ PROTOTYPES: ENABLE BOOT: { if (!indirect_initialized++) { + HV *stash; #if I_THREADSAFE MY_CXT_INIT; MY_CXT.tbl = ptable_new(); @@ -548,6 +549,9 @@ BOOT: PL_check[OP_METHOD] = MEMBER_TO_FPTR(indirect_ck_method); indirect_old_ck_entersub = PL_check[OP_ENTERSUB]; PL_check[OP_ENTERSUB] = MEMBER_TO_FPTR(indirect_ck_entersub); + + stash = gv_stashpvn(__PACKAGE__, __PACKAGE_LEN__, 1); + newCONSTSUB(stash, "I_THREADSAFE", newSVuv(I_THREADSAFE)); } }