Created
April 21, 2025 09:03
-
-
Save xeecos/63c1d14a73ad40d5c7a1437215e17024 to your computer and use it in GitHub Desktop.
test wasm
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <emscripten/bind.h> | |
| #include <emscripten/val.h> | |
| val print_test(const char* infile, const char* outfile) | |
| { | |
| val ret = val::object(); | |
| //processing | |
| ret.set("res", 0); | |
| return ret; | |
| } | |
| EMSCRIPTEN_BINDINGS(xxx) | |
| { | |
| emscripten::function("print_test", &print_test); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment