Skip to content

Instantly share code, notes, and snippets.

@sverhoeven
Created October 2, 2020 08:19
Show Gist options
  • Select an option

  • Save sverhoeven/ae0f301763c4ad597efd5b540d5fe58d to your computer and use it in GitHub Desktop.

Select an option

Save sverhoeven/ae0f301763c4ad597efd5b540d5fe58d to your computer and use it in GitHub Desktop.
run-cpp-on-web: webassembly
#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