From: Marcelo M. <mm...@ac...> - 2006-03-27 05:23:56
|
yes, that was an old error that now is fixed, Marcelo Roy Sutton wrote: > In one of the .i files we include in our project we had the line: > > %constant const char * ART_TOOLBAR = wxART_TOOLBAR_C; > > Under Swig 1.3.25 this got converted as: > > rb_define_const(mWxRubyConstants,"ART_TOOLBAR", > rb_str_new2("wxART_TOOLBAR_C")); > > Now it gets converted as: > > rb_define_const(mWxRubyConstants, "ART_TOOLBAR", > SWIG_FromCharPtr(wxART_TOOLBAR_C)); > > I've changed the .i file to read: > > %constant const char * ART_TOOLBAR = "wxART_TOOLBAR_C"; > > And now at least it compiles. I can't seem to find anything in the > docs that refers to this implicit conversion to a string from an > identifier so I'm wondering if we were relying on some undocumented > bug before or if perhaps my change was wrong? > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting > language > that extends applications into web and mobile media. Attend the live > webcast > and join the prime developer group breaking into this new coding > territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > _______________________________________________ > Swig-user mailing list > Swi...@li... > https://lists.sourceforge.net/lists/listinfo/swig-user |