Sha256: 49b6ffddacd86fdecd221d2fd0647ff56226b3e2d93925097cfb4c9a064a1d57
Contents?: true
Size: 713 Bytes
Versions: 13
Compression:
Stored size: 713 Bytes
Contents
#include "Object.hpp" #include <algorithm> inline Rice::Address_Registration_Guard:: Address_Registration_Guard(VALUE * address) : address_(address) { rb_gc_register_address(address); } inline Rice::Address_Registration_Guard:: Address_Registration_Guard(Object * object) : address_(const_cast<VALUE *>(&object->value())) { rb_gc_register_address(address_); } inline Rice::Address_Registration_Guard:: ~Address_Registration_Guard() { rb_gc_unregister_address(address_); } inline VALUE * Rice::Address_Registration_Guard:: address() const { return address_; } inline void Rice::Address_Registration_Guard:: swap(Rice::Address_Registration_Guard & other) { std::swap(address_, other.address_); }
Version data entries
13 entries across 13 versions & 4 rubygems