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