(L *lua.LState)
| 76 | } |
| 77 | |
| 78 | func (m luaModule) table(L *lua.LState) *lua.LTable { |
| 79 | name := m.name |
| 80 | if m.name == lua.BaseLibName { |
| 81 | name = "_G" |
| 82 | } |
| 83 | return L.GetGlobal(name).(*lua.LTable) |
| 84 | } |
| 85 | |
| 86 | func (m luaModule) preload(L *lua.LState) { |
| 87 | L.PreloadModule(m.name, m.loader) |
no outgoing calls
no test coverage detected