Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type VM ¶
VM has a single State field which holds a pointer to our lua VM state TODO: Implement VM pool to save on memory consumption
var LuaMachine VM
LuaMachine is a global var which points to our VM struct TODO: Replace the need for this with a channel and pool
func (VM) GetTable ¶
GetTable pops a variable from the lua stack, then returns the next variable TODO: This is temporary. Need to figure out a better way to handle multiple return types
func (VM) LoadModule ¶
LoadModule takes a string containing lua code and executes it. Storing it in the lua global environment
Click to show internal directories.
Click to hide internal directories.