ext/cairo/rb_cairo_context.c in cairo-1.16.4 vs ext/cairo/rb_cairo_context.c in cairo-1.16.5

- old
+ new

@@ -238,11 +238,17 @@ return rb_funcall (rb_cairo__cFFIPointer, rb_intern ("new"), 1, PTR2NUM (_SELF)); } +static VALUE +cr_raw_address (VALUE self) +{ + return PTR2NUM (_SELF); +} + static VALUE cr_restore (VALUE self) { cairo_restore (_SELF); cr_check_status (_SELF); @@ -1871,9 +1877,11 @@ rb_define_method (rb_cCairo_Context, "copy_path", cr_copy_path, 0); rb_define_method (rb_cCairo_Context, "copy_path_flat", cr_copy_path_flat, 0); rb_define_method (rb_cCairo_Context, "append_path", cr_copy_append_path, 1); rb_define_method (rb_cCairo_Context, "to_ptr", cr_to_ptr, 0); + + rb_define_method (rb_cCairo_Context, "raw_address", cr_raw_address, 0); #if CAIRO_CHECK_VERSION(1, 15, 4) /* Logical structure tagging functions */ { VALUE rb_mCairo_Tag;