aboutsummaryrefslogtreecommitdiffstats
path: root/ext/win32ole/win32ole.h
diff options
context:
space:
mode:
authorsuke <suke@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-12-01 11:03:13 +0000
committersuke <suke@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-12-01 11:03:13 +0000
commit7f411d6ed4b77c6ce60beae84573e9fb4dca912a (patch)
tree99d60abe485f0c84adfc29552465c0cda705fcac /ext/win32ole/win32ole.h
parent15cfc9553a1ff1e4a84c40360ed3285b27edaf60 (diff)
downloadruby-7f411d6ed4b77c6ce60beae84573e9fb4dca912a.tar.gz
* ext/win32ole/win32ole.c: use typed data for WIN32OLE.
* ext/win32ole/win32ole.h: ditto. * ext/win32ole/win32ole_event.c: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48665 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/win32ole/win32ole.h')
-rw-r--r--ext/win32ole/win32ole.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/ext/win32ole/win32ole.h b/ext/win32ole/win32ole.h
index f51fca12b6..d61f5e23b4 100644
--- a/ext/win32ole/win32ole.h
+++ b/ext/win32ole/win32ole.h
@@ -112,16 +112,10 @@ struct oledata {
IDispatch *pDispatch;
};
-#define OLEData_Get_Struct(obj, pole) {\
- Data_Get_Struct(obj, struct oledata, pole);\
- if(!pole->pDispatch) {\
- rb_raise(rb_eRuntimeError, "failed to get Dispatch Interface");\
- }\
-}
-
VALUE cWIN32OLE;
LCID cWIN32OLE_lcid;
+struct oledata *oledata_get_struct(VALUE obj);
LPWSTR ole_vstr2wc(VALUE vstr);
LONG reg_open_key(HKEY hkey, const char *name, HKEY *phkey);
LONG reg_open_vkey(HKEY hkey, VALUE key, HKEY *phkey);