#include <ruby_reference.hpp>
Public Types | |
typedef void(* | Ruby_Data_Func )(T *obj) |
A function that takes a T* and returns void. | |
Static Public Member Functions | |
VALUE | wrap (VALUE klass, Ruby_Data_Func mark, Ruby_Data_Func free, T *obj) |
T * | unwrap (VALUE value) |
|
Equivalent to Data_Get_Struct, but if Data_Get_Struct raises an exception, it gets converted to a C++ exception. |
|
Equivalent to Data_Wrap_Struct, but if Data_Wrap_Struct raises an exception, it gets converted to a C++ exception. |