/* Copyright (c) 1995,1996-1998 Nick Ing-Simmons. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. */ #include #include #include MODULE = Devel::Callsite PACKAGE = Devel::Callsite PROTOTYPES: Enable IV callsite() INIT: #if PERL_VERSION > 8 register PERL_CONTEXT *cx; #endif CODE: #if PERL_VERSION > 8 cx = &cxstack[cxstack_ix]; RETVAL = (IV)(cx->blk_sub.retop); #else RETVAL = (IV)(PL_retstack[PL_retstack_ix - 1]); #endif OUTPUT: RETVAL