Skip to content

Commit

Permalink
die if attribute of class (but not an object) is accessed
Browse files Browse the repository at this point in the history
  • Loading branch information
yko committed May 4, 2013
1 parent 08ee4fa commit bfd283f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion XS.xs
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ __entersub_optimized__()

#define ACCESSOR_BODY \
if (!SvROK(self)) \
XSRETURN_UNDEF; \
croak("Accessor '%s' should be called on an object, but called on the '%s' clasname", readfrom.accessor_name, SvPV_nolen(self)); \
HV *object = (HV*)SvRV(self); \
if (items > 1) { \
SV* newvalue = newSVsv(ST(1)); \
Expand Down

0 comments on commit bfd283f

Please sign in to comment.