1

I would like to use the C++ API of a project from Node and I can't change the C++ code.
I looked at node-ffi but it doesn't seems to be able to work with C++ namespace and classes.

Do you know any other way?

4

1 回答 1

0

SWIG 可以为许多脚本语言包装 c++,包括 javascript/nodejs。见http://www.swig.org/Doc3.0/Javascript.html

于 2017-01-20T20:35:24.780 回答