(l *State)
| 59 | } |
| 60 | |
| 61 | func searcherPreload(l *State) int { |
| 62 | name := CheckString(l, 1) |
| 63 | l.Field(RegistryIndex, "_PRELOAD") |
| 64 | l.Field(-1, name) |
| 65 | if l.IsNil(-1) { |
| 66 | l.PushString(fmt.Sprintf("\n\tno field package.preload['%s']", name)) |
| 67 | } |
| 68 | return 1 |
| 69 | } |
| 70 | |
| 71 | func createSearchersTable(l *State) { |
| 72 | searchers := []Function{searcherPreload, searcherLua} |
nothing calls this directly
no test coverage detected