Sha256: 061ed505a6fc195930af06912be7ee4419c772dc4bf867962c7bb21ff23d68ac

Contents?: true

Size: 625 Bytes

Versions: 2

Compression:

Stored size: 625 Bytes

Contents

#ifndef _RR_V8_WEAKREF_
#define _RR_V8_WEAKREF_ 

#include <v8.h>
#include "ruby.h"

struct v8_weakref  {
  v8_weakref(VALUE object);
  VALUE get();
  void set(VALUE object);
  void retain();
  void release();

  VALUE object_id;
  v8::Persistent<v8::External> external;
};

void  v8_weakref_dispose(v8::Persistent<v8::Value> value, void* weakref);
VALUE v8_weakref_finalize(VALUE self, VALUE object_id);
VALUE v8_weakref_objectspace();
VALUE v8_weakref_nil(VALUE nil, VALUE exception);
VALUE v8_weakref_id2ref(VALUE id);

extern "C" VALUE rb_proc_new(VALUE (*)(ANYARGS/* VALUE yieldarg[, VALUE procarg] */), VALUE);

#endif

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
therubyracer-0.9.0beta3 ext/v8/v8_weakref.h
therubyracer-0.9.0beta2 ext/v8/v8_weakref.h