Hello.
I'm making C bindings for V8 engine. I used the patches from
http://codereview.chromium.org/6070 as a source of inspiration. The
usage of handles is as follows:
V8Handle type is a void * pointer to an object contained within
handle.
template<typename T>
static V8Handle unwrap_handle(v8::Handle<T> handle) {
return *handle;
}
template<typename T>
static v8::Handle<T> wrap_handle(V8Handle handle) {
return v8::Handle<T>(reinterpret_cast<T*>(handle));
}
These functions are used to convert C to C++ handles back and forth.
I want to figure out how to use local and persistent handles with C.
Please, suggest me something.
--
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users