Closed
Description
Something like
L := lua.NewState()
defer L.Close()
L.PreloadString("mymodule", `
local mymodule = {}
function mymodule.foo()
print("Hello World!")
end
return mymodule
`)
L.DoString(`
local mymodule = require "mymodule"
mymodule.foo()
`)
I imagine it should be possible, but can't find the correct documentation for it.
Metadata
Metadata
Assignees
Labels
No labels