in reply to Re: Accessors in xs
in thread Accessors in xs
That was it. Applying chromatic's suggestion for a *PUSH* macro fixed it all:
void world_location(self) SV* self PREINIT: HV *hash_self = (HV*) SvRV( self ); SV **x = hv_fetch( hash_self, "x", 1, FALSE ); SV **y = hv_fetch( hash_self, "y", 1, FALSE ); PPCODE: EXTEND(SP, 2); PUSHs( *x ); PUSHs( *y );
Passes all tests. Thanks.
"There is no shame in being self-taught, only in not trying to learn in the first place." -- Atrus, Myst: The Book of D'ni.
|
|---|