Errorf raises an error. The error message format is given by format plus any extra arguments, following the same rules as PushFString. It also adds at the beginning of the message the file name and the line number where the error occurred, if this information is available. This function never retur
(l *State, format string, a ...interface{})
| 207 | // lua.Errorf(l, args) |
| 208 | // panic("unreachable") |
| 209 | func Errorf(l *State, format string, a ...interface{}) { |
| 210 | Where(l, 1) |
| 211 | l.PushFString(format, a...) |
| 212 | l.Concat(2) |
| 213 | l.Error() |
| 214 | } |
| 215 | |
| 216 | // ToStringMeta converts any Lua value at the given index to a Go string in a |
| 217 | // reasonable format. The resulting string is pushed onto the stack and also |