Some plugin callbacks

This commit is contained in:
Zachary Yedidia
2019-03-19 18:28:51 -04:00
parent 5ab6c9795f
commit 3335f377a9
8 changed files with 96 additions and 22 deletions

View File

@@ -23,11 +23,6 @@ import (
var L *lua.LState
func init() {
L = lua.NewState()
L.SetGlobal("import", luar.New(L, Import))
}
// LoadFile loads a lua file
func LoadFile(module string, file string, data []byte) error {
pluginDef := []byte("module(\"" + module + "\", package.seeall)")