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

Method assertEqual

code.go:300–304  ·  view source on GitHub ↗
(a, b interface{})

Source from the content-addressed store, hash-verified

298func (e exprDesc) hasMultipleReturns() bool { return e.kind == kindCall || e.kind == kindVarArg }
299
300func (f *function) assertEqual(a, b interface{}) {
301 if a != b {
302 panic(fmt.Sprintf("%v != %v", a, b))
303 }
304}
305
306func (f *function) encode(i instruction) int {
307 f.assert(len(f.f.code) == len(f.f.lineInfo))

Callers 1

freeRegisterMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected