Skip to content

Commit

Permalink
Fixed #11 by adding 'void' to 'getResult'
Browse files Browse the repository at this point in the history
  • Loading branch information
beef331 committed Nov 14, 2024
1 parent 5e8dd69 commit d6a0f6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/wasm3.nim
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ proc ptrArrayTo*(t: var WasmTuple): auto =
for i, x in enumerate t.fields:
result[i] = pointer(x.addr)

template getResult*[T: WasmTuple or WasmTypes](theFunc: PFunction): untyped =
template getResult*[T: WasmTuple or WasmTypes or void](theFunc: PFunction): untyped =
when T is void:
discard
else:
Expand Down
2 changes: 1 addition & 1 deletion wasm3.nimble
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Package

version = "0.1.14"
version = "0.1.15"
author = "jason"
description = "A new awesome nimble package"
license = "MIT"
Expand Down

0 comments on commit d6a0f6a

Please sign in to comment.