aboutsummaryrefslogtreecommitdiffstats
path: root/ext/win32ole/win32ole.h
diff options
context:
space:
mode:
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);