Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
WASMEDGE_VERSION='0.16.1'
WASMEDGE_VERSION='0.17.0'
WASMEDGE_GO_VERSION='0.14.0'
7 changes: 4 additions & 3 deletions docs/embed/c/host_function.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,17 +72,18 @@ To create a `host table`, `memory`, and `global` instance, developers can use si

```c
/* Create a host table exported as "table". */
WasmEdge_Limit TabLimit = {
.HasMax = true, .Shared = false, .Min = 10, .Max = 20};
WasmEdge_LimitContext *TabLimit = WasmEdge_LimitCreateWithMax(10, 20, false, false);
WasmEdge_TableTypeContext *HostTType =
WasmEdge_TableTypeCreate(WasmEdge_ValTypeGenFuncRef(), TabLimit);
WasmEdge_LimitDelete(TabLimit);
WasmEdge_TableInstanceContext *HostTable =
WasmEdge_TableInstanceCreate(HostTType);
WasmEdge_TableTypeDelete(HostTType);

/* Create a host memory exported as "memory". */
WasmEdge_Limit MemLimit = {.HasMax = true, .Shared = false, .Min = 1, .Max = 2};
WasmEdge_LimitContext *MemLimit = WasmEdge_LimitCreateWithMax(1, 2, false, false);
WasmEdge_MemoryTypeContext *HostMType = WasmEdge_MemoryTypeCreate(MemLimit);
WasmEdge_LimitDelete(MemLimit);
WasmEdge_MemoryInstanceContext *HostMemory =
WasmEdge_MemoryInstanceCreate(HostMType);
WasmEdge_MemoryTypeDelete(HostMType);
Expand Down
3 changes: 2 additions & 1 deletion docs/embed/c/intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@ sys 0m0.011s

## API References

- [0.16.1](reference/latest.md)
- [0.17.0](reference/latest.md)
- [0.16.3](reference/0.16.x.md)
- [0.15.1](reference/0.15.x.md)
- [0.14.1](reference/0.14.x.md)
- [0.13.5](reference/0.13.x.md)
Expand Down
2 changes: 1 addition & 1 deletion docs/embed/c/reference/0.10.x.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
sidebar_position: 13
sidebar_position: 15
---

# C API 0.10.1 Documentation
Expand Down
2 changes: 1 addition & 1 deletion docs/embed/c/reference/0.11.x.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
sidebar_position: 11
sidebar_position: 13
---

# C API 0.11.2 Documentation
Expand Down
2 changes: 1 addition & 1 deletion docs/embed/c/reference/0.12.x.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
sidebar_position: 9
sidebar_position: 11
---

# C API 0.12.1 Documentation
Expand Down
2 changes: 1 addition & 1 deletion docs/embed/c/reference/0.13.x.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
sidebar_position: 7
sidebar_position: 9
---

# C API 0.13.5 Documentation
Expand Down
2 changes: 1 addition & 1 deletion docs/embed/c/reference/0.14.x.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
sidebar_position: 5
sidebar_position: 7
---

# C API 0.14.1 Documentation
Expand Down
2 changes: 1 addition & 1 deletion docs/embed/c/reference/0.15.x.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
sidebar_position: 3
sidebar_position: 5
---

# C API 0.15.1 Documentation
Expand Down
Loading
Loading