Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <emscripten/bind.h>
- #include <iostream>
- using namespace emscripten;
- // Define constant being exposed
- const double PI = 3.141592653589793238463;
- // Expose PI constant to JS
- EMSCRIPTEN_BINDINGS(Module)
- {
- constant("PI", PI);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement