MCPcopy Index your code
hub / github.com/Shopify/go-lua / CheckAny

Function CheckAny

auxiliary.go:301–305  ·  view source on GitHub ↗

CheckAny checks whether the function has an argument of any type (including nil) at position index.

(l *State, index int)

Source from the content-addressed store, hash-verified

299
300// CheckAny checks whether the function has an argument of any type (including nil) at position index.
301func CheckAny(l *State, index int) {
302 if l.TypeOf(index) == TypeNone {
303 ArgumentError(l, index, "value expected")
304 }
305}
306
307// ArgumentCheck checks whether cond is true. If not, raises an error with a standard message.
308func ArgumentCheck(l *State, cond bool, index int, extraMessage string) {

Callers 3

debug.goFile · 0.85
base.goFile · 0.85
io.goFile · 0.85

Calls 2

ArgumentErrorFunction · 0.85
TypeOfMethod · 0.80

Tested by

no test coverage detected