search for: rb_const_defined

Displaying 4 results from an estimated 4 matches for "rb_const_defined".

2012 Feb 10
3
Installing from source missing -lruby18 in linking.
...g missing -lruby18 resulting in errors like wx.cpp:(.text+0x1618): undefined reference to `rb_intern'' wx.cpp:(.text+0x165c): undefined reference to `rb_eNotImpError'' wx.cpp:(.text+0x1666): undefined reference to `rb_raise'' wx.cpp:(.text+0x167d): undefined reference to `rb_const_defined'' wx.cpp:(.text+0x1698): undefined reference to `rb_const_get'' could it be a bad expansion of values in the Config::CONFIG hash ? And if it is, how do I verify that it is the problem? How does the Config hash get filled with values? How do I check that Config::CONFIG["L...
2007 Jun 26
0
[1085] trunk/wxruby2/swig: Add checks and ruby exceptions for two common Wx::Window mistakes leading to
...uot;cx"> </span><ins>+// BusyInfo is an exception to the general rule in typemap.i - it +// accepts a wxWindow* parent argument which may be null - but it does +// not inherit from TopLevelWindow - so special typemap for this class. +%typemap(check) wxWindow* parent { + if ( ! rb_const_defined(mWxruby2, rb_intern("THE_APP") ) ) +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp{ rb_raise(rb_eRuntimeError, +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nb...
2007 Jul 18
0
[1119] trunk/wxruby2/swig/Functions.i: Avoid erroneous ''parent must not be nil'' errors when using global
...which take a parent argument in this file display +// dialogs, so the parent argument can be nil (which is not permitted in +// the normal typemap defined in typemap.i). So override the standard +// typemap and just check that the App has been started. +%typemap(check) wxWindow* parent { + if ( ! rb_const_defined(mWxruby2, rb_intern("THE_APP") ) ) +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp{ rb_raise(rb_eRuntimeError, +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nb...
2007 Jul 04
0
[1099] trunk/wxruby2/swig/classes/XmlResource.i: Permit Dialogs and Frames with no parents to be created via XRC; add comments
...created by XmlResource +// LoadDialog and LoadFrame methods. So we disable that part of the +// checking for all methods (including those which would ideally retain +// it - eg LoadPanel - b/c no way to apply a typemap based on method +// name in SWIG?) +%typemap(check) wxWindow* parent { + if ( ! rb_const_defined(mWxruby2, rb_intern("THE_APP") ) ) +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp{ rb_raise(rb_eRuntimeError, +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nb...