MCPcopy Index your code
hub / github.com/yuin/gopher-lua / osSetEnv

Function osSetEnv

oslib.go:182–192  ·  view source on GitHub ↗
(L *LState)

Source from the content-addressed store, hash-verified

180}
181
182func 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
194func osTime(L *LState) int {
195 if L.GetTop() == 0 {

Callers

nothing calls this directly

Calls 4

LStringTypeAlias · 0.85
CheckStringMethod · 0.80
PushMethod · 0.65
ErrorMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…