Benbuck Nason and GitHub
c5ab862dbb
Add api to get export global instance ( #3452 )
...
Add API
```C
bool
wasm_runtime_get_export_global_inst(const wasm_module_inst_t module_inst,
const char *name,
wasm_global_inst_t *global_inst);
```
2024-05-22 16:59:44 +08:00
Benbuck Nason and GitHub
0ceffe74a7
Add cmake static/shared library build settings ( #3443 )
...
Allow builds to target either static library only, shared library only, or both (default).
2024-05-18 21:15:11 +08:00
Benbuck Nason and GitHub
7744e84607
ssp_config.h: Fix ifdef for android random api ( #3444 )
...
It looks like the preferred preprocessor check for Android is `__ANDROID__`
instead of `ANDROID`:
https://groups.google.com/g/android-ndk/c/cf9_f1SLXls
Change `(defined(ANDROID) && __ANDROID_API__ < 28)` to
`((defined(ANDROID) || defined(__ANDROID__)) && (__ANDROID_API__ < 28))`.
2024-05-18 20:23:34 +08:00
Benbuck Nason and GitHub
0f17a1464e
Add comments to global type function declarations ( #3431 )
2024-05-14 11:38:18 +08:00
Benbuck Nason and GitHub
dbd8790681
Add WASM_V128 in wasm_valkind_enum ( #3412 )
...
Add WASM_V128 in wasm_valkind_enum and handle the the type accordingly
in wasm_c_api.c and wasm_runtime_common.c, and fix a typo in V128 union.
2024-05-14 10:22:42 +08:00
Benbuck Nason and GitHub
b349d844f8
Fix workspaces path in build_wamr.sh ( #3414 )
...
This should match the path inside of .devcontainer/Dockerfile.
2024-05-13 11:47:28 +08:00
Benbuck Nason and GitHub
c85bada2a9
Add wasm module global type information APIs ( #3406 )
...
Support getting global type from `wasm_runtime_get_import_type` and
`wasm_runtime_get_export_type`, and add two APIs:
```C
wasm_valkind_t
wasm_global_type_get_valkind(const wasm_global_type_t global_type);
bool
wasm_global_type_get_mutable(const wasm_global_type_t global_type);
```
2024-05-10 09:15:58 +08:00
Benbuck Nason and GitHub
432a940735
Fix clang compile warnings ( #3396 )
2024-05-08 16:43:47 +08:00
Benbuck Nason and GitHub
1c2a8fca4e
Fix some more spelling issues ( #3393 )
2024-05-08 09:30:29 +08:00
Benbuck Nason and GitHub
ca61184ced
Fix some spelling issues ( #3385 )
...
Fix some of the spelling issues found by CSpell.
2024-05-06 07:56:48 +08:00
Benbuck Nason and GitHub
c0e33f08b0
Expose API to get import/export function's param/result valkind ( #3363 )
...
Export API:
```C
wasm_func_type_get_param_count
wasm_func_type_get_param_valkind
wasm_func_type_get_result_count
wasm_func_type_get_result_valkind
```
And change wasm_import_type/wasm_export_type to wasm_import_t/wasm_export_t.
2024-05-03 09:41:08 +08:00
Benbuck Nason and GitHub
4abf288c94
Fix typo for 'native' in wasm_export.h ( #3376 )
...
Trivial spelling fix.
2024-04-30 08:57:49 +08:00
Benbuck Nason and GitHub
8253c417a8
Add functions to expose module import/export info ( #3330 )
...
Resolves #3329 .
2024-04-20 08:57:39 +08:00