Move entire Emscripten interface for Javascript into its own file that is included separately; closes #1318

This commit is contained in:
Ian Bell
2016-11-05 00:03:34 -06:00
parent d5ab63ea29
commit ecef5cb2bc
5 changed files with 63 additions and 85 deletions

View File

@@ -976,24 +976,3 @@ std::string PhaseSI(const std::string &Name1, double Prop1, const std::string &N
*/
} /* namespace CoolProp */
/// *********************************************************************************
/// *********************************************************************************
/// EMSCRIPTEN (for javascript)
/// *********************************************************************************
/// *********************************************************************************
#ifdef EMSCRIPTEN
#include <emscripten/bind.h>
using namespace emscripten;
// Binding code
EMSCRIPTEN_BINDINGS(coolprop_bindings) {
function("Props1SI", &CoolProp::Props1SI);
function("PropsSI", &CoolProp::PropsSI);
function("get_global_param_string", &CoolProp::get_global_param_string);
}
#endif