Better instructions - 
http://www.codeproject.com/Articles/29109/Using-V8-Google-s-Chrome-JavaScript-Virtual-Machin

вторник, 24 декабря 2013 г., 14:28:35 UTC+9 пользователь Александр Шумилов 
написал:
>
> Hello! 
> Here is the problem - we have wrapped C++ structure object in the one and 
> only field of the JavaScript Object (I've followed the tutorial on 
> http://create.tpsitulsa.com/blog/2009/01/29/v8-objects/, so this 
> particular object is done with the External::New). How can I unwrap the C++ 
> structure from the internal field?
> I've done this:
>
> HandleScope handle_scope;
> Handle<Object> objecttounwrap = args[0]->ToObject();
> Local<Value> valuetounwrap = objecttounwrap->GetInternalField(0);
> External::Unwrap(valuetounwrap);
>
> External::Unwrap is void(), so it does not actually return anything. I 
> will very much appreciate any help with this.
>

-- 
-- 
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.

Reply via email to