mirror of
https://github.com/CompeyDev/lei.git
synced 2024-12-12 04:40:42 +00:00
13 lines
245 B
Go
13 lines
245 B
Go
package main
|
|
|
|
import lualib "github.com/CompeyDev/lei/internal"
|
|
|
|
func main() {
|
|
lua := lualib.LNewState()
|
|
lualib.PushCClosureK(lua, func(L *lualib.LuaState) int32 {
|
|
println("hi from closure? ")
|
|
return 0
|
|
}, "test", 0, nil)
|
|
|
|
println(lua)
|
|
}
|