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

@@ -29,7 +29,7 @@ func createCountdown(L *lua.State) c.Int {
}
func main() {
L := lua.Newstate()
L := lua.Newstate__1()
L.Openlibs()
defer L.Close()
L.Register(c.Str("create_countdown"), createCountdown)