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

Function AtPanic

lua.go:628–631  ·  view source on GitHub ↗

AtPanic sets a new panic function and returns the old one.

(l *State, panicFunction Function)

Source from the content-addressed store, hash-verified

626
627// AtPanic sets a new panic function and returns the old one.
628func AtPanic(l *State, panicFunction Function) Function {
629 panicFunction, l.global.panicFunction = l.global.panicFunction, panicFunction
630 return panicFunction
631}
632
633func (l *State) valueToType(v value) Type {
634 switch v.(type) {

Callers 1

NewStateExFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected