#define ADD_LINK_ATTR(st, attr_type, attr_name, attr_value) \
STMT_START { \
- assert(NP->seqn); \
+ if (st->add_attr_cb) assert(NP->seqn); \
_ADD_ATTR_NP(st, attr_type, attr_name, attr_value, NP); \
} STMT_END;
type = SvTYPE(thing);
if (type > SVt_LAST) {
warn("Devel::Size: Unknown variable type: %d encountered\n", type);
- return 1;
+ return 0;
}
NPathPushNode(thing, NPtype_SV);
ADD_SIZE(st, "sv_head", sizeof(SV));
| 0x200 # Provide informative names to anonymous subroutines;
;
$do_size_at_end = 1;
+
+ if (not defined $ENV{SIZEME}) {
+ $ENV{SIZEME} = "| sizeme_store.pl --db=sizeme.db";
+ warn qq{SIZEME env var not set, defaulting to "$ENV{SIZEME}"\n};
+ }
}
}
$warn = 1;
$dangle = 0; ## Set true to enable warnings about dangling pointers
-if (not defined $ENV{SIZEME}) {
- $ENV{SIZEME} = "| sizeme_store.pl --db=sizeme.db";
- warn qq{SIZEME env var not set, defaulting to "$ENV{SIZEME}"\n};
-}
-
XSLoader::load( __PACKAGE__);
END {