svp = hv_fetchs(args, "builder", FALSE);
if(svp){
if(!SvOK(*svp)){
- mouse_throw_error(klass, NULL,
+ mouse_throw_error(klass, *svp,
"builder must be a defined scalar value which is a method name");
}
can_be_required = TRUE;
}
else if((svp = hv_fetchs(args, "default", FALSE))){
if(SvROK(*svp) && SvTYPE(SvRV(*svp)) != SVt_PVCV) {
- mouse_throw_error(klass, NULL,
+ mouse_throw_error(klass, *svp,
"References are not allowed as default values, you must "
"wrap the default of '%"SVf"' in a CODE reference "
"(ex: sub { [] } and not [])", name);
va_list args;
SV* message;
- PERL_UNUSED_ARG(data); /* for moose-compat */
-
assert(metaobject);
assert(fmt);
{
dSP;
PUSHMARK(SP);
- EXTEND(SP, 4);
+ EXTEND(SP, 6);
PUSHs(metaobject);
mPUSHs(message);
if(data){ /* extra arg, might be useful for debugging */
- mPUSHs(newSVpsv("data"));
+ mPUSHs(newSVpvs("data"));
PUSHs(data);
mPUSHs(newSVpvs("depth"));
mPUSHi(-1);