On Sat, Oct 10, 2009 at 6:08 PM, Matthias Ernst <[email protected]>wrote:

>  Foo* foo = static_cast<Foo>(Handle<External>::Cast(args.Data())->Value());
>

Careful to use the correct type: static_cast<Foo*>(...)

There are several v8-based add-on libs which greatly simplify the binding
process and support binding to member functions. Mine is documented here:

http://code.google.com/p/v8-juice/wiki/CreatingJSClasses

-- 
----- stephan beal
http://wanderinghorse.net/home/stephan/

--~--~---------~--~----~------------~-------~--~----~
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to