How to wrap C ++ classes with Duktape

I am playing with Duktape as a replacement for v8. Went through the docs and was able to call C functions from Javascript and vice versa. However, it is not clear to me how to proceed when you need to access C ++ classes from JavaScript similar to v8. Can anyone put together a very simple example to illustrate this?

Thank!

+3
duktape


source to share


No one has answered this question yet

See similar questions:

8
export c ++ class to duktape

or similar:

8
export c ++ class to duktape
4
Can Duktape make HTTP requests
1
How to read an array of scripts in duktape?
0
How to create a C ++ object in Duktape
0
duktape how to parse an argument of type String Object (similar to Number object) in duktape c function
0
How do I write a central function dispatcher for duktape?
0
use duktape on ARM for audio playback
0
How to get class name when running constructor function in duktape?
0
duktape: "TypeError: not callable"
0
Expand C ++ class using duktape



All Articles
Loading...
X
Show
Funny
Dev
Pics