DoFile loads and runs the given file.
(l *State, fileName string)
| 574 | |
| 575 | // DoFile loads and runs the given file. |
| 576 | func DoFile(l *State, fileName string) error { |
| 577 | if err := LoadFile(l, fileName, ""); err != nil { |
| 578 | return err |
| 579 | } |
| 580 | return l.ProtectedCall(0, MultipleReturns, 0) |
| 581 | } |
| 582 | |
| 583 | // DoString loads and runs the given string. |
| 584 | func DoString(l *State, s string) error { |
nothing calls this directly
no test coverage detected