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

Method SetRegTop

compile.go:605–610  ·  view source on GitHub ↗
(top int)

Source from the content-addressed store, hash-verified

603}
604
605func (fc *funcContext) SetRegTop(top int) {
606 if top > maxRegisters {
607 raiseCompileError(fc, fc.Proto.LineDefined, "too many local variables")
608 }
609 fc.regTop = top
610}
611
612func (fc *funcContext) RegTop() int {
613 return fc.regTop

Callers 2

RegisterLocalVarMethod · 0.95
LeaveBlockMethod · 0.95

Calls 1

raiseCompileErrorFunction · 0.85

Tested by

no test coverage detected