5 dXSTARG; /* Faster if we have it. */
11 /* IV iv; Uncomment this if you need to return IVs */
12 /* NV nv; Uncomment this if you need to return NVs */
13 /* const char *pv; Uncomment this if you need to return PVs */
16 const char * s = SvPV(sv, len);
18 type = constant(aTHX_ s, len);
19 /* Return 1 or 2 items. First is error message, or undef if no error.
20 Second, if present, is found value */
22 case PERL_constant_NOTFOUND:
23 sv = sv_2mortal(newSVpvf("%s is not a valid Math::Vector::XS macro", s));
26 case PERL_constant_NOTDEF:
27 sv = sv_2mortal(newSVpvf(
28 "Your vendor has not defined Math::Vector::XS macro %s, used", s));
31 /* Uncomment this if you need to return IVs
32 case PERL_constant_ISIV:
37 /* Uncomment this if you need to return NOs
38 case PERL_constant_ISNO:
43 /* Uncomment this if you need to return NVs
44 case PERL_constant_ISNV:
49 /* Uncomment this if you need to return PVs
50 case PERL_constant_ISPV:
53 PUSHp(pv, strlen(pv));
55 /* Uncomment this if you need to return PVNs
56 case PERL_constant_ISPVN:
61 /* Uncomment this if you need to return SVs
62 case PERL_constant_ISSV:
67 /* Uncomment this if you need to return UNDEFs
68 case PERL_constant_ISUNDEF:
70 /* Uncomment this if you need to return UVs
71 case PERL_constant_ISUV:
76 /* Uncomment this if you need to return YESs
77 case PERL_constant_ISYES:
83 sv = sv_2mortal(newSVpvf(
84 "Unexpected return type %d while processing Math::Vector::XS macro %s, used",