pmed / v8pp

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

ignore it. please! #209

Closed AzureSky2013 closed 1 month ago

AzureSky2013 commented 5 months ago

class Vector3 { public: double x; double y; double z; };

regist to v8 and then in function.hpp:29 void* ptr; memcpy(&ptr, &value, sizeof value); v8::External::New(isolate, ptr); ptr will equal 0, and v8::External::New(isolate, ptr); will error