Files
llgo/c/lua/_demo/hello/hello.go
2024-07-08 21:31:11 +08:00

18 lines
259 B
Go

package main
import (
_ "unsafe"
"github.com/goplus/llgo/c"
"github.com/goplus/llgo/c/lua"
)
func main() {
L := lua.NewState()
defer L.Close()
L.OpenLibs()
if res := L.DoString(c.Str("print('hello world')")); res != lua.OK {
println("error")
}
}