(L *LState)
| 6 | ) |
| 7 | |
| 8 | func OpenMath(L *LState) int { |
| 9 | mod := L.RegisterModule(MathLibName, mathFuncs).(*LTable) |
| 10 | mod.RawSetString("pi", LNumber(math.Pi)) |
| 11 | mod.RawSetString("huge", LNumber(math.MaxFloat64)) |
| 12 | L.Push(mod) |
| 13 | return 1 |
| 14 | } |
| 15 | |
| 16 | var mathFuncs = map[string]LGFunction{ |
| 17 | "abs": mathAbs, |
nothing calls this directly
no test coverage detected
searching dependent graphs…