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

Method CheckInt64

auxlib.go:29–36  ·  view source on GitHub ↗
(n int)

Source from the content-addressed store, hash-verified

27}
28
29func (ls *LState) CheckInt64(n int) int64 {
30 v := ls.Get(n)
31 if intv, ok := v.(LNumber); ok {
32 return int64(intv)
33 }
34 ls.TypeError(n, LTNumber)
35 return 0
36}
37
38func (ls *LState) CheckNumber(n int) LNumber {
39 v := ls.Get(n)

Callers 5

osDiffTimeFunction · 0.80
osDateFunction · 0.80
TestCheckInt64Function · 0.80
mathRandomseedFunction · 0.80
fileSeekFunction · 0.80

Calls 2

GetMethod · 0.95
TypeErrorMethod · 0.95

Tested by 1

TestCheckInt64Function · 0.64