title: Compile C++ functions to Wasm
body: <p>I read this <a href="https://developer.mozilla.org/en-US/docs/WebAssembly/C_to_wasm" rel="nofollow noreferrer">tutorial</a> about wasm and after point 3. "Calling a custom function defined in C" I tried to figure out how to bind C++ functions and classes to JavaScript in that manner? Do I have to use <a href="https://kripken.github.io/emscripten-site/docs/porting/connecting_cpp_and_javascript/embind.html#embind" rel="nofollow noreferrer">Embind</a> there for, but how? </p>
  
  <p>I also found this <a href="https://stackoverflow.com/questions/15865923/interaction-with-c-classes-in-emscripten">thread</a> and the second answer from @lacenen could be a workaround. </p>