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

Method assert

code.go:293–293  ·  view source on GitHub ↗
(cond bool)

Source from the content-addressed store, hash-verified

291func (f *function) breakLabel() { f.FindGotos(f.MakeLabel("break", 0)) }
292func (f *function) unreachable() { f.assert(false) }
293func (f *function) assert(cond bool) { f.p.l.assert(cond) }
294func (f *function) Instruction(e exprDesc) *instruction { return &f.f.code[e.info] }
295func (e exprDesc) hasJumps() bool { return e.t != e.f }
296func (e exprDesc) isNumeral() bool { return e.kind == kindNumber && e.t == noJump && e.f == noJump }

Callers 15

CloseFunctionMethod · 0.95
EnterBlockMethod · 0.95
closeGotoMethod · 0.95
LeaveBlockMethod · 0.95
unreachableMethod · 0.95
encodeMethod · 0.95
dropLastInstructionMethod · 0.95
EncodeABCMethod · 0.95
encodeABxMethod · 0.95
encodeExtraArgMethod · 0.95
JumpMethod · 0.95
ReturnMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected