MCPcopy
hub / github.com/yuin/gopher-lua / CheckAny

Method CheckAny

auxlib.go:13–18  ·  view source on GitHub ↗

* checkType {{{ */

(n int)

Source from the content-addressed store, hash-verified

11/* checkType {{{ */
12
13func (ls *LState) CheckAny(n int) LValue {
14 if n > ls.GetTop() {
15 ls.ArgError(n, "value expected")
16 }
17 return ls.Get(n)
18}
19
20func (ls *LState) CheckInt(n int) int {
21 v := ls.Get(n)

Callers 15

osTimeFunction · 0.80
baseErrorFunction · 0.80
baseGetMetatableFunction · 0.80
basePCallFunction · 0.80
baseRawEqualFunction · 0.80
baseRawGetFunction · 0.80
baseRawSetFunction · 0.80
baseToNumberFunction · 0.80
baseToStringFunction · 0.80
baseTypeFunction · 0.80
strGsubFunction · 0.80
debugGetFEnvFunction · 0.80

Calls 3

GetTopMethod · 0.95
ArgErrorMethod · 0.95
GetMethod · 0.95

Tested by

no test coverage detected