From 85a8dcce2a141d42862ae0ddfcac96a6b6a7ed83 Mon Sep 17 00:00:00 2001 From: varnicas Date: Tue, 25 Jun 2024 07:53:21 +0000 Subject: [PATCH] Update 'README.md' --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 43ca1ee..56195f5 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ Link for compiling code with Embind → https://emscripten.org/docs/porting/conn ``` emcc -lembind -o test.js test.cpp -s NO_EXIT_RUNTIME=1 -s "EXPORTED_RUNTIME_METHODS=['ccall']" ``` -- **EMSCRIPTEN_BINDINGS** macro is used to bind the C++ function to make it callable from JavaScript (https://git.pranger.xyz/varnicas/testingwasm/src/branch/main/C++/test.cpp#L12-L15) +- **EMSCRIPTEN_BINDINGS** macro is used to bind the C++ function to make it callable from JavaScript [Code](https://git.pranger.xyz/varnicas/testingwasm/src/branch/main/C++/test.cpp#L12-L15) - Emscripten compiles the C++ code to WebAssembly, generating a **.wasm** file and **JavaScript** glue code that loads the WebAssembly module and sets up the bindings