You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
308 B

8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
  1. #include <iostream>
  2. #include <emscripten/bind.h>
  3. #include <string>
  4. using namespace emscripten;
  5. std::string myFunction(std::string word)
  6. {
  7. std::string test = " testing";
  8. return word + test;
  9. };
  10. EMSCRIPTEN_BINDINGS(my_module)
  11. {
  12. function("myFunction", &myFunction);
  13. };
  14. int main()
  15. {
  16. return 0;
  17. }