diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-03-14 19:07:02 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2022-03-15 08:20:47 +0900 |
commit | aa347cbe65031ff02a5b2de0f7a36e29d72b8008 (patch) | |
tree | 8278ec03bf40b46a14539d5c0bec34f8e2a3aa9f /ext/win32ole/win32ole_event.c | |
parent | 6a8bc90278ca39546a76c8a669f732ce3fc8d417 (diff) | |
download | ruby-aa347cbe65031ff02a5b2de0f7a36e29d72b8008.tar.gz |
[ruby/win32ole] Rename toplevel WIN32OLE_* classes
https://github.com/ruby/win32ole/commit/bc7deb6a6a
Diffstat (limited to 'ext/win32ole/win32ole_event.c')
-rw-r--r-- | ext/win32ole/win32ole_event.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/win32ole/win32ole_event.c b/ext/win32ole/win32ole_event.c index 041639af6c..93e4d6bad5 100644 --- a/ext/win32ole/win32ole_event.c +++ b/ext/win32ole/win32ole_event.c @@ -1264,7 +1264,8 @@ Init_win32ole_event(void) ary_ole_event = rb_ary_new(); rb_gc_register_mark_object(ary_ole_event); id_events = rb_intern("events"); - cWIN32OLE_EVENT = rb_define_class("WIN32OLE_EVENT", rb_cObject); + cWIN32OLE_EVENT = rb_define_class_under(cWIN32OLE, "Event", rb_cObject); + rb_define_const(rb_cObject, "WIN32OLE_EVENT", cWIN32OLE_EVENT); rb_define_singleton_method(cWIN32OLE_EVENT, "message_loop", fev_s_msg_loop, 0); rb_define_alloc_func(cWIN32OLE_EVENT, fev_s_allocate); rb_define_method(cWIN32OLE_EVENT, "initialize", fev_initialize, -1); |