Created
October 2, 2020 08:19
-
-
Save sverhoeven/ae0f301763c4ad597efd5b540d5fe58d to your computer and use it in GitHub Desktop.
run-cpp-on-web: webassembly
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 "newtonraphson.hpp" | |
| using namespace emscripten; | |
| EMSCRIPTEN_BINDINGS(newtonraphson) { | |
| class_<NewtonRaphson>("NewtonRaphson") | |
| .constructor<float>() | |
| .function("solve", &NewtonRaphson::solve) | |
| ; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment