Advanced Emscripten features
We covered the Emscripten features we'll be using most frequently for communicating between JavaScript and C/C++ in the previous sections, but those aren't the only capabilities Emscripten provides. There are advanced features and additional APIs that you need to be aware of, especially if you plan on adding more complex functionality to your application. In this section, we'll briefly review some of these advanced features and provide details about where you can learn more.
Embind
Embind is an additional feature that Emscripten offers for connecting JavaScript and C++. Emscripten's site provides the following description:
"Embind is used to bind C++ functions and classes to JavaScript, so that the compiled code can be used in a natural way by 'normal' JavaScript. Embind also supports calling JavaScript classes from C++."
Embind is a powerful feature that allows for tight integration between JavaScript and C++. You can wrap some C++ code in an EMSCRIPTEN_BINDINGS...