Open tmc opened 3 years ago
Unfortunately, namespace is a C++ feature. And V8 is also written in C++. So no bindings directly, usually C++ needs to be wrapped additionally into C code, and that C code can be used in bindings. That's true for most C++ projects, due to lack of stable ABI for C++.
Look at this work for example https://github.com/augustoroman/v8/blob/master/v8_c_bridge.cc
Also this: https://github.com/lazytiger/go-v8/blob/master/v8_wrap.cc
So you can only generate bindings using the corresponding C headers.
My naive attempt of generating bindings for v8.h via:
results in:
I gather it's the namespace..