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

Function getBoolField

oslib.go:41–47  ·  view source on GitHub ↗
(L *LState, tb *LTable, key string, v bool)

Source from the content-addressed store, hash-verified

39}
40
41func getBoolField(L *LState, tb *LTable, key string, v bool) bool {
42 ret := tb.RawGetString(key)
43 if lb, ok := ret.(LBool); ok {
44 return bool(lb)
45 }
46 return v
47}
48
49func OpenOs(L *LState) int {
50 osmod := L.RegisterModule(OsLibName, osFuncs)

Callers 1

osTimeFunction · 0.85

Calls 1

RawGetStringMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…