(L *LState, tb *LTable, key string, v bool)
| 39 | } |
| 40 | |
| 41 | func 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 | |
| 49 | func OpenOs(L *LState) int { |
| 50 | osmod := L.RegisterModule(OsLibName, osFuncs) |
no test coverage detected
searching dependent graphs…