I
Iain Dooley
hello, i've got ruby embedded into an application, and i've built a code
editor that allows you to edit ruby code for a GUI at runtime. only
problem is that something like this:
@parent.child("widgetName").display(@count)
will crash ruby if there is no child of parent with name "widgetName". i
know that there is rb_funcall_protect that allows you to trap errors,
but the problem is that i'm not doing an rb_funcall. the functions are
being called from with Qt/Ruby bindings. is there a way that i can trap
all errors from the ruby interpreter to prevent segfaults in dynamically
edited code from crashing the program?
cheers
iain
editor that allows you to edit ruby code for a GUI at runtime. only
problem is that something like this:
@parent.child("widgetName").display(@count)
will crash ruby if there is no child of parent with name "widgetName". i
know that there is rb_funcall_protect that allows you to trap errors,
but the problem is that i'm not doing an rb_funcall. the functions are
being called from with Qt/Ruby bindings. is there a way that i can trap
all errors from the ruby interpreter to prevent segfaults in dynamically
edited code from crashing the program?
cheers
iain