pmed / v8pp

Bind C++ functions and classes into V8 JavaScript engine
http://pmed.github.io/v8pp/
Other
890 stars 120 forks source link

Does the class constructor must be this form ? void (*)(const v8::FunctionCallbackInfo<v8::Value>& args)???? #87

Closed zxbzswxr closed 5 years ago

zxbzswxr commented 5 years ago

as title mentioned , if I have C++ class ,How can I pass difference parameters when calling a constructor of an object .....

pmed commented 5 years ago

Of course not, see example in documentation for v8pp::class_: https://github.com/pmed/v8pp/blob/master/docs/wrapping.md#v8ppclass_