mirror of
https://github.com/rubyjs/therubyracer
synced 2023-03-27 23:21:42 -04:00
24 lines
380 B
C++
24 lines
380 B
C++
#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;
|
|
}
|
|
|