Method: Newt::Form::ExitStruct#watch
- Defined in:
- ext/ruby_newt/ruby_newt.c
#watch ⇒ Object
779 780 781 782 783 784 785 786 787 788 |
# File 'ext/ruby_newt/ruby_newt.c', line 779
static VALUE rb_ext_ExitStruct_watch(VALUE self)
{
rb_newt_ExitStruct *rb_es;
Data_Get_Struct(self, rb_newt_ExitStruct, rb_es);
if (rb_es->es.reason == NEWT_EXIT_FDREADY)
return INT2NUM(rb_es->es.u.watch);
else
return Qnil;
}
|