Hi Steffen,

Steffen Mueller wrote:
I grepped and found it in some of the main Wx package .xs files, but always inside a structure like " %name{Wx::TextCtrlBase} class wxTextCtrlBase {... " and I don't recognise that syntax /at all/. The Wx package features strongly when doing a Google Code Search for "%name{". What is it?
It's a sort of preprocessor directive that's part of the XS++ syntax. Have a look at the documentation for ExtUtils::XSpp. The ExtUtils::XSpp also contains a very simple example distribution. Maybe check that out before you try to understand the much, much more complicated Wx use of the XS++ preprocessor.

Note that any of the .xsp files you'll find in Wx are meant to be processed by xspp to produce regular XS. The typemap.xsp is typemap's XS++ brother.

Until the most recent Wx release, XS++ was part of Wx and it only got split out recently because it's useful for other C++ bindings as well. Therefore, Wx has by far the most complicated use of XS++ you'll find.
Ahh, I see! Thanks for that! :-)

-- Ryan

Reply via email to