bfulgham at gmail.com
Thu Jun 10 07:45:52 PDT 2010
You can see good working examples of this by examining the inspector
code in the WebKit tree.
Basically, the JSC engine only knows about C calls, so you have to
write C functions that in turn call your C++ constructor, methods,
function pointers to these methods.
I think if you look over the inspector code most of your questions
will be answered.
Sent from my iPhone
On Jun 10, 2010, at 1:43 AM, Wadii Guedria <wadii.gd at gmail.com> wrote:
> For example, I have an extern C++ class (attributes+methodes)
> var object = new mycpluplusclass();
> I know that I need to use JSClassDefinition and set the
> JSStaticFunction. But I dont know how to define my C++ constructor
> in JSObjectCallAsConstructorCallback
> Same thing for get/set Property(C++ attribute).
> Any suggestions are welcome.
> webkit-help mailing list
> webkit-help at lists.webkit.org
More information about the webkit-help