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

Method TypeError

auxlib.go:248–250  ·  view source on GitHub ↗
(n int, typ LValueType)

Source from the content-addressed store, hash-verified

246}
247
248func (ls *LState) TypeError(n int, typ LValueType) {
249 ls.RaiseError("bad argument #%v to %v (%v expected, got %v)", n, ls.rawFrameFuncName(ls.currentFrame), typ.String(), ls.Get(n).Type().String())
250}
251
252/* }}} */
253

Callers 15

CheckIntMethod · 0.95
CheckInt64Method · 0.95
CheckNumberMethod · 0.95
CheckStringMethod · 0.95
CheckBoolMethod · 0.95
CheckTableMethod · 0.95
CheckFunctionMethod · 0.95
CheckUserDataMethod · 0.95
CheckThreadMethod · 0.95
CheckTypeMethod · 0.95
OptIntMethod · 0.95
OptInt64Method · 0.95

Calls 5

RaiseErrorMethod · 0.95
rawFrameFuncNameMethod · 0.95
GetMethod · 0.95
StringMethod · 0.65
TypeMethod · 0.65

Tested by

no test coverage detected