(L *LState)
| 180 | } |
| 181 | |
| 182 | func osSetEnv(L *LState) int { |
| 183 | err := os.Setenv(L.CheckString(1), L.CheckString(2)) |
| 184 | if err != nil { |
| 185 | L.Push(LNil) |
| 186 | L.Push(LString(err.Error())) |
| 187 | return 2 |
| 188 | } else { |
| 189 | L.Push(LTrue) |
| 190 | return 1 |
| 191 | } |
| 192 | } |
| 193 | |
| 194 | func osTime(L *LState) int { |
| 195 | if L.GetTop() == 0 { |
nothing calls this directly
no test coverage detected
searching dependent graphs…