20 lines
308 B
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;
|
|
}
|