Sha256: 549a54a786c8dc9d06226ffc93a8badfa0d930b4232c61252af4f6b0ac83d806
Contents?: true
Size: 520 Bytes
Versions: 1
Compression:
Stored size: 520 Bytes
Contents
#ifndef __ruby_gate_h #define __ruby_gate_h #include "h8.h" #include "object_wrap.h" namespace h8 { class RubyWrap : public ObjectWrap { public: RubyWrap(H8* ctx) : context(ctx) { ctx->registerWrap(this); } public void setRubyInstance(VALUE instance) { this->instance = instance; } virtual ~RubyWrap() { context->unregisterWrap(this); } private: H8 *context; VALUE instance = Qnil; }; } #endif
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
h8-0.0.2 | ext/h8/ruby_wrap.h |