How I handled it.
vec2* Unwrap(Handle<Value> obj)
{
Handle<External> field =
Handle<External>::Cast(obj->ToObject()->GetInternalField(0));
void* ptr = field->Value();
return static_cast<vec2*>(ptr);
}
--
--
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
---
You received this message because you are subscribed to the Google Groups
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.