X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMouse.git;a=blobdiff_plain;f=xs-src%2FMouseAccessor.xs;h=d724f937fab55dd9a25d6116067bf6dbaa981860;hp=ef5009a6a6ef031ca666053aad04704bd86076b5;hb=cc7cd81f082a9aaa3dd17ca07dbb91da28bd0b69;hpb=3001d9acb5b99317145fbef8785855161a128f04 diff --git a/xs-src/MouseAccessor.xs b/xs-src/MouseAccessor.xs index ef5009a..d724f93 100644 --- a/xs-src/MouseAccessor.xs +++ b/xs-src/MouseAccessor.xs @@ -11,8 +11,9 @@ static MGVTBL mouse_accessor_vtbl; /* MAGIC identity */ +#define dMOUSE_self SV* const self = mouse_accessor_get_self(aTHX_ ax, items, cv) -SV* +static inline SV* mouse_accessor_get_self(pTHX_ I32 const ax, I32 const items, CV* const cv) { if(items < 1){ croak("Too few arguments for %s", GvNAME(CvGV(cv)));