Stub out support for V128 in the C API for now.

This commit is contained in:
Nick Lewycky 2019-07-02 17:01:50 -07:00
parent bb30434392
commit f4af4e387d
3 changed files with 4 additions and 0 deletions

View File

@ -402,6 +402,7 @@ pub unsafe extern "C" fn wasmer_export_func_call(
tag: wasmer_value_tag::WASM_F64,
value: wasmer_value { F64: x },
},
_ => panic!("not implemented"),
};
results[0] = ret;
}

View File

@ -173,6 +173,7 @@ pub unsafe extern "C" fn wasmer_instance_call(
tag: wasmer_value_tag::WASM_F64,
value: wasmer_value { F64: x },
},
_ => panic!("not implemented"),
};
results[0] = ret;
}

View File

@ -76,6 +76,7 @@ impl From<Value> for wasmer_value_t {
tag: wasmer_value_tag::WASM_F64,
value: wasmer_value { F64: x },
},
_ => panic!("not implemented"),
}
}
}
@ -113,6 +114,7 @@ impl From<&wasmer_runtime::wasm::Type> for wasmer_value_tag {
Type::I64 => wasmer_value_tag::WASM_I64,
Type::F32 => wasmer_value_tag::WASM_F32,
Type::F64 => wasmer_value_tag::WASM_F64,
_ => panic!("not implemented"),
}
}
}