static VALUE t_watch_filename (VALUE self, VALUE fname) { try { return ULONG2NUM(evma_watch_filename(StringValuePtr(fname))); } catch (std::runtime_error e) { rb_sys_fail(e.what()); } }
static VALUE t_watch_filename (VALUE self, VALUE fname) { try { return ULONG2NUM(evma_watch_filename(StringValuePtr(fname))); } catch (std::runtime_error e) { rb_raise (EM_eUnsupported, "%s", e.what()); } return Qnil; }