mirror of
https://github.com/Hilbis/Hilbish
synced 2025-04-02 03:33:22 +00:00
fix: export hilbish.goro (closes #98)
This commit is contained in:
parent
b0e4cf6ed1
commit
99461e42d0
3
api.go
3
api.go
@ -25,6 +25,7 @@ var exports = map[string]lua.LGFunction {
|
|||||||
"appendPath": hlappendPath,
|
"appendPath": hlappendPath,
|
||||||
"cwd": hlcwd,
|
"cwd": hlcwd,
|
||||||
"exec": hlexec,
|
"exec": hlexec,
|
||||||
|
"goro": hlgoro,
|
||||||
"multiprompt": hlmlprompt,
|
"multiprompt": hlmlprompt,
|
||||||
"prependPath": hlprependPath,
|
"prependPath": hlprependPath,
|
||||||
"prompt": hlprompt,
|
"prompt": hlprompt,
|
||||||
@ -265,7 +266,7 @@ func hlexec(L *lua.LState) int {
|
|||||||
// goro(fn)
|
// goro(fn)
|
||||||
// Puts `fn` in a goroutine
|
// Puts `fn` in a goroutine
|
||||||
// --- @param fn function
|
// --- @param fn function
|
||||||
func hlgoroutine(L *lua.LState) int {
|
func hlgoro(L *lua.LState) int {
|
||||||
fn := L.CheckFunction(1)
|
fn := L.CheckFunction(1)
|
||||||
argnum := L.GetTop()
|
argnum := L.GetTop()
|
||||||
args := make([]lua.LValue, argnum)
|
args := make([]lua.LValue, argnum)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user