1
0
Fork 0
mirror of https://github.com/rubyjs/therubyracer synced 2023-03-27 23:21:42 -04:00
therubyracer/v8_ref.h
2009-12-07 09:20:16 +02:00

24 lines
No EOL
332 B
C++

#ifndef _RUBY_V8_REF_
#define _RUBY_V8_REF_
#include <v8.h>
class v8_ref_data {
};
template <class T> class v8_ref : v8_ref_data {
public:
v8_ref(v8::Handle<T> object);
~v8_ref();
private:
v8::Persistent<T> handle;
};
//memory management
void v8_ref_mark(v8_ref_data* ref);
void v8_ref_free(v8_ref_data* ref);
#endif