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

Function ArgumentCheck

auxiliary.go:308–312  ·  view source on GitHub ↗

ArgumentCheck checks whether cond is true. If not, raises an error with a standard message.

(l *State, cond bool, index int, extraMessage string)

Source from the content-addressed store, hash-verified

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) {
309 if !cond {
310 ArgumentError(l, index, extraMessage)
311 }
312}
313
314// CheckString checks whether the function argument at index is a string and returns this string.
315//

Callers 10

fieldArgumentsFunction · 0.85
checkUpValueMethod · 0.85
debug.goFile · 0.85
base.goFile · 0.85
formatHelperFunction · 0.85
string.goFile · 0.85
table.goFile · 0.85
linesFunction · 0.85
io.goFile · 0.85
math.goFile · 0.85

Calls 1

ArgumentErrorFunction · 0.85

Tested by

no test coverage detected