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

@@ -20,7 +20,7 @@ func main() {
return a .. b .. c
end`)
if res := L.Dostring(code); res != lua.OK {
if res := L.DoString(code); res != lua.OK {
c.Printf(c.Str("error: %s\n"), L.ToString(-1))
}