1
0
Fork 0
mirror of https://github.com/rubyjs/therubyracer synced 2023-03-27 23:21:42 -04:00
therubyracer/v8_ref.cpp

25 lines
380 B
C++
Raw Normal View History

#include <v8_ref.h>
#include "stdio.h"
using namespace v8;
template <class T> v8_ref<T>::v8_ref(Handle<T> object) : handle(*object) {
}
template <class T> v8_ref<T>::~v8_ref() {
printf("Disposing of v8 reference\n");
if (!handle.IsEmpty()) {
handle.Dispose();
}
}
void v8_ref_mark(v8_ref_data* ref) {
}
void v8_ref_free(v8_ref_data* ref) {
delete ref;
}