From: Roy S. <ro...@mi...> - 2006-03-27 04:34:53
|
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? |