c/lua:alloc

This commit is contained in:
luoliwoshang
2024-09-16 23:12:33 +08:00
parent c6345279cc
commit e3cb4ebfdc
19 changed files with 60 additions and 37 deletions

View File

@@ -8,7 +8,7 @@ import (
)
func main() {
L := lua.Newstate()
L := lua.Newstate__1()
defer L.Close()
L.Openlibs()
if res := L.Loadstring(c.Str("function doubleNumber(x) ! return x * 2 end")); res != lua.OK {