5 dXSTARG; /* Faster if we have it. */
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 /* Change this to constant(aTHX_ s, len, &iv, &nv);
19 if you need to return both NVs and IVs */
20 type = constant(aTHX_ s, len, &iv);
21 /* Return 1 or 2 items. First is error message, or undef if no error.
22 Second, if present, is found value */
24 case PERL_constant_NOTFOUND:
25 sv = sv_2mortal(newSVpvf("%s is not a valid LibTracker::Client macro", s));
28 case PERL_constant_NOTDEF:
29 sv = sv_2mortal(newSVpvf(
30 "Your vendor has not defined LibTracker::Client macro %s, used", s));
33 case PERL_constant_ISIV:
38 /* Uncomment this if you need to return NOs
39 case PERL_constant_ISNO:
44 /* Uncomment this if you need to return NVs
45 case PERL_constant_ISNV:
50 /* Uncomment this if you need to return PVs
51 case PERL_constant_ISPV:
54 PUSHp(pv, strlen(pv));
56 /* Uncomment this if you need to return PVNs
57 case PERL_constant_ISPVN:
62 /* Uncomment this if you need to return SVs
63 case PERL_constant_ISSV:
68 /* Uncomment this if you need to return UNDEFs
69 case PERL_constant_ISUNDEF:
71 /* Uncomment this if you need to return UVs
72 case PERL_constant_ISUV:
77 /* Uncomment this if you need to return YESs
78 case PERL_constant_ISYES:
84 sv = sv_2mortal(newSVpvf(
85 "Unexpected return type %d while processing LibTracker::Client macro %s, used",