Hilbish/moonlight/util_clua.go

14 lines
258 B
Go
Raw Normal View History

2024-07-21 15:37:08 +00:00
//go:build midnight
package moonlight
func (mlr *Runtime) DoString(code string) (Value, error) {
err := mlr.state.DoString(code)
return NilValue, err
}
func (mlr *Runtime) DoFile(filename string) error {
2024-12-22 05:18:54 +00:00
return mlr.state.DoFile(filename)
return nil
2024-07-21 15:37:08 +00:00
}