Skip to content

Commit

Permalink
interp/wasman: add define of host function 31 call signature
Browse files Browse the repository at this point in the history
Signed-off-by: deadprogram <ron@hybridgroup.com>
  • Loading branch information
deadprogram committed Mar 1, 2024
1 parent 2b02944 commit 59def5e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions interp/wasman/interp.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ func (i *Interpreter) DefineFunc(moduleName, funcName string, f any) error {
return wasmaneng.DefineFunc20(i.linker, moduleName, funcName, tf)
case func(uint32, uint32) uint32:
return wasmaneng.DefineFunc21(i.linker, moduleName, funcName, tf)
case func(uint32, uint32, uint32) uint32:
return wasmaneng.DefineFunc31(i.linker, moduleName, funcName, tf)
default:
return engine.ErrInvalidFuncType
}
Expand Down

0 comments on commit 59def5e

Please sign in to comment.