llgo/c/lua:table & coroutine

This commit is contained in:
luoliwoshang
2024-06-30 19:35:45 +08:00
parent 7a294e6d4e
commit a5d7fc484a
10 changed files with 419 additions and 125 deletions

View File

@@ -11,7 +11,7 @@ func main() {
L := lua.NewState()
defer L.Close()
L.OpenLibs()
if res := L.Dostring(c.Str("print('hello world')")); res != lua.OK {
if res := L.DoString(c.Str("print('hello world')")); res != lua.OK {
println("error")
}
}