On Fri, 7 Sep 2007, Steve Fink wrote:
On 9/7/07, Scott Lanning <[EMAIL PROTECTED]> wrote:
Is it documented somewhere which variables are
available to typemaps and what they are?
I have a vague memory of seeing such a thing, but I can't track it
down. I may have been making it up.
Like $arg, $var, $type, but I also see different
and mysterious ones. I tried looking around ExtUtils,
but ran in circles.
What's an example of such a thing? I scanned through xsubpp, but
didn't see any more '$' things other than those three.
I think there may be constructs usable in different parts (prototypes,
something to do with lengths or STRLEN, ...?) Are those what you are
thinking of?
I'm currently using $arg, $var, $type, $Package, and $func_name
(in http://search.cpan.org/src/SLANNING/Ogre-0.26/typemap
which are passed to macros in
http://search.cpan.org/src/SLANNING/Ogre-0.26/perlOGRE.h ).
I copied those from somewhere.
I guess the answer will eventually be
"whatever variables happen to be in scope when
that part of the typemap is `eval`ed"
(which seems to be all variables in `xsubpp`....).