Ivan Enderlin
05dae9ef9d
doc(runtime-c-api) Improve documentation of wasmer_instance_context_data_set
.
2020-01-20 15:42:50 +01:00
Ivan Enderlin
edf45049e1
doc(runtime-c-api) Improve documentation of wasmer_instance_context_t
.
2020-01-20 15:42:27 +01:00
Ivan Enderlin
cb632f3452
feat(runtime-c-api) Do nothing if instance
is null in wasmer_instance_exports
.
2020-01-20 15:30:00 +01:00
Ivan Enderlin
19627bdb8b
doc(runtime-c-api) Improve documentation of wasmer_instance_exports
.
2020-01-20 15:29:35 +01:00
Ivan Enderlin
3efd7d1232
doc(runtime-c-api) Improve documentation of wasmer_instance_call
.
2020-01-20 15:29:04 +01:00
Ivan Enderlin
585f5615cf
fix(runtime-c-api) Fix imports, and check for null pointer.
2020-01-20 14:36:45 +01:00
Ivan Enderlin
77ba77446d
doc(runtime-c-api) Improve documentation of wasmer_instance_context_get
.
2020-01-20 14:36:11 +01:00
Ivan Enderlin
cd3a1064f9
chore(runtime-c-api) Move wasmer_module_import_instantiate
to the module
module.
2020-01-20 14:25:13 +01:00
Ivan Enderlin
44a80dc4a0
doc(runtime-c-api) Improve documentation of wasmer_instantiate
.
2020-01-16 12:30:26 +01:00
Ivan Enderlin
13800872ff
doc(runtime-c-api) Improve documentation of wasmer_instance_context_t
.
2020-01-16 12:29:33 +01:00
Ivan Enderlin
88ca11628a
doc(runtime-c-api) Improve documentation of wasmer_instance_t
.
2020-01-16 12:29:09 +01:00
Mark McCaskey
913354adb3
Add function to get export from ns/name via ImportObject to C API
2019-10-09 17:29:27 -07:00
Yaron Wittenstein
eed3b28eab
comment cleanup
2019-08-02 22:54:00 +03:00
Yaron Wittenstein
3f4ffb0e2d
Merge branch 'develop' into c-api-import_object_t
2019-08-01 18:15:21 +03:00
Yaron Wittenstein
ab76755ade
runtime-c-api:
...
* import.rs - adding `import_object_t` and `wasmer_import_object_destroy`
* instance.rs - adding `wasmer_module_import_instantiate`
2019-08-01 10:48:03 +03:00
Yaron Wittenstein
351977690b
adding a document for wasmer_instance_context_get
2019-07-31 14:15:16 +03:00
Yaron Wittenstein
847dd6f65e
c-api: adding wasmer_instance_context_get
(instance.rs
)
2019-07-31 14:12:25 +03:00
Nick Lewycky
18307bb79c
Improve panic/unreachable/unimplemented usage. Refactor a little.
2019-07-22 12:15:56 -07:00
Nick Lewycky
f4af4e387d
Stub out support for V128 in the C API for now.
2019-07-10 13:54:36 -07:00
Ivan Enderlin
63ec73aacc
fix(runtime-c-api) Remove deprecated types from libc.
...
Since https://github.com/rust-lang/libc/pull/1379 , fixed width integer
type aliases are deprecated. Thus, this patch uses Rust types instead
of libc aliases.
2019-06-12 12:10:49 +02:00
Ivan Enderlin
90676b5c5b
feat(runtime-c-api) wasmer_instantiate
raises the source error.
...
Instead of returning only “error instanting”, `wasmer_instantiate` can
return the real error message.
2019-05-24 14:24:00 +02:00
Ivan Enderlin
d3c75a38fa
fix(runtime-c-api) wasmer_instance_call
types matches wasmer_export_func_*_arity
.
...
The `wasmer_export_func_params_arity` and
`wasmer_export_func_returns_arity` functions store the arity in a
`uint32_t`. The `wasmer_instance_call` expects `c_int`. There is a
type mismatch here. It's not annoying in C or C++, but in some other
languages that have bindings to C/C++, it can imply useless casting.
This patch changes `wasmer_instance_call` to expect `uint32_t` for
`params_len` and `results_len` to match the
`wasmer_export_func_*_arity` functions.
2019-05-14 11:46:43 +02:00
Ivan Enderlin
1c063090c5
doc(runtime-c-api) Add short module descriptions.
2019-03-29 16:35:35 +01:00
Ivan Enderlin
361ff81db7
feat(runtime-c-api) Extract the import
module.
2019-03-29 15:50:16 +01:00
Ivan Enderlin
9c4696eb5b
feat(runtime-c-api) Extract the export
module.
2019-03-29 15:38:12 +01:00
Ivan Enderlin
f46be814da
feat(runtime-c-api) Extract the instance
module.
2019-03-29 15:14:05 +01:00