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.
 
 
 

20 lines
308 B

#include <iostream>
#include <emscripten/bind.h>
#include <string>
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;
}