pass current package to custom type reifier
[p5sagit/Function-Parameters.git] / Parameters.xs
index c999c9b..ea7b797 100644 (file)
@@ -520,8 +520,9 @@ static SV *reify_type(pTHX_ Sentinel sen, const SV *declarator, const KWSpec *sp
        SAVETMPS;
 
        PUSHMARK(SP);
-       EXTEND(SP, 1);
+       EXTEND(SP, 2);
        PUSHs(name);
+       PUSHs(PL_curstname);
        PUTBACK;
 
        n = call_sv(sv, G_SCALAR);