Ruby: ext/win32ole/win32ole_error.c File Reference

Ruby 3.0.5p211 (2022-11-24 revision ba5cf0f7c52d4d35cc6a173c89eda98ceffa2dcf)

Functions | Variables
win32ole_error.c File Reference
`#include "win32ole.h"`

Go to the source code of this file.

## Functions
void | ole_raise (HRESULT hr, VALUE ecs, const char *fmt,...)
void | Init_win32ole_error (void)

## Variables
VALUE | eWIN32OLERuntimeError
VALUE | eWIN32OLEQueryInterfaceError

## Function Documentation

## ◆ Init_win32ole_error()

void Init_win32ole_error | ( | void |  | ) |

Definition at line 67 of file win32ole_error.c.

References eWIN32OLEQueryInterfaceError, eWIN32OLERuntimeError, rb_define_class(), and rb_eRuntimeError.

Referenced by Init_win32ole().

## ◆ ole_raise()

void ole_raise | ( | HRESULT | hr,
|  | VALUE | ecs,
|  | const char * | fmt,
|  |  | ...
| ) |  |

Definition at line 46 of file win32ole_error.c.

References Qnil, rb_exc_new_str(), rb_exc_raise(), rb_str_append(), rb_str_cat2, rb_vsprintf(), and va_init_list.

Referenced by ole_initialize(), ole_methods_from_typeinfo(), ole_rec2variant(), and val2variant_ptr().

## Variable Documentation

## ◆ eWIN32OLEQueryInterfaceError

VALUE eWIN32OLEQueryInterfaceError

Definition at line 64 of file win32ole_error.c.

Referenced by Init_win32ole_error(), and ole_methods_from_typeinfo().

## ◆ eWIN32OLERuntimeError

VALUE eWIN32OLERuntimeError

Definition at line 63 of file win32ole_error.c.

Referenced by Init_win32ole_error(), ole_rec2variant(), and ole_vstr2wc().