From d6a0f6a78a39c41912ae0376aafc8ea48e056fd1 Mon Sep 17 00:00:00 2001 From: Jason Beetham Date: Wed, 13 Nov 2024 20:41:14 -0700 Subject: [PATCH] Fixed #11 by adding 'void' to 'getResult' --- src/wasm3.nim | 2 +- wasm3.nimble | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wasm3.nim b/src/wasm3.nim index 9c35aac..5625b73 100644 --- a/src/wasm3.nim +++ b/src/wasm3.nim @@ -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: diff --git a/wasm3.nimble b/wasm3.nimble index 4b3e92f..f2f9df1 100644 --- a/wasm3.nimble +++ b/wasm3.nimble @@ -1,6 +1,6 @@ # Package -version = "0.1.14" +version = "0.1.15" author = "jason" description = "A new awesome nimble package" license = "MIT"