(L *LState)
| 93 | } |
| 94 | |
| 95 | func loLoaderLua(L *LState) int { |
| 96 | name := L.CheckString(1) |
| 97 | path, msg := loFindFile(L, name, "path") |
| 98 | if len(path) == 0 { |
| 99 | L.Push(LString(msg)) |
| 100 | return 1 |
| 101 | } |
| 102 | fn, err1 := L.LoadFile(path) |
| 103 | if err1 != nil { |
| 104 | L.RaiseError(err1.Error()) |
| 105 | } |
| 106 | L.Push(fn) |
| 107 | return 1 |
| 108 | } |
| 109 | |
| 110 | func loLoadLib(L *LState) int { |
| 111 | L.RaiseError("loadlib is not supported") |
nothing calls this directly
no test coverage detected
searching dependent graphs…