24 # include <emscripten/bind.h>
25 using namespace emscripten;
28 EMSCRIPTEN_BINDINGS(coolprop_bindings) {
29 function(
"F2K", &
F2K);
37 EMSCRIPTEN_BINDINGS(humid_air_bindings) {
46 EMSCRIPTEN_BINDINGS(abstract_state_bindings) {
48 register_vector<double>(
"VectorDouble");
49 register_vector<std::string>(
"VectorString");
51 value_object<CoolProp::PhaseEnvelopeData>(
"CoolProp::PhaseEnvelopeData")
54 # define X(name) .field(# name, &CoolProp::PhaseEnvelopeData::name)
59 function(
"factory", &factory, allow_raw_pointers());
61 class_<CoolProp::AbstractState>(
"AbstractState")
67 .function(
"set_mole_fractions", &CoolProp::AbstractState::set_mole_fractions_double)