#include #include #include using namespace emscripten; std::string myFunction(std::string word) { std::string test = " testing"; return word + test; }; EMSCRIPTEN_BINDINGS(my_module) { function("myFunction", &myFunction); }; int main() { return 0; }