SHARE
TWEET

Untitled

quantumech Apr 23rd, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <emscripten/bind.h>
  2. #include <iostream>
  3.  
  4. using namespace emscripten;
  5.  
  6. // Define constant being exposed
  7. const double PI = 3.141592653589793238463;
  8.  
  9. // Expose PI constant to JS
  10. EMSCRIPTEN_BINDINGS(Module)
  11. {
  12.     constant("PI", PI);
  13. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top