fix: export hilbish.goro (closes #98)

windows-fixes
TorchedSammy 2022-03-04 14:40:54 -04:00
parent b0e4cf6ed1
commit 99461e42d0
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD
1 changed files with 2 additions and 1 deletions

3
api.go
View File

@ -25,6 +25,7 @@ var exports = map[string]lua.LGFunction {
"appendPath": hlappendPath,
"cwd": hlcwd,
"exec": hlexec,
"goro": hlgoro,
"multiprompt": hlmlprompt,
"prependPath": hlprependPath,
"prompt": hlprompt,
@ -265,7 +266,7 @@ func hlexec(L *lua.LState) int {
// goro(fn)
// Puts `fn` in a goroutine
// --- @param fn function
func hlgoroutine(L *lua.LState) int {
func hlgoro(L *lua.LState) int {
fn := L.CheckFunction(1)
argnum := L.GetTop()
args := make([]lua.LValue, argnum)