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

Function dontClose

io.go:293–298  ·  view source on GitHub ↗
(l *State)

Source from the content-addressed store, hash-verified

291}
292
293func dontClose(l *State) int {
294 toStream(l).close = dontClose
295 l.PushNil()
296 l.PushString("cannot close standard file")
297 return 2
298}
299
300func registerStdFile(l *State, f *os.File, reg, name string) {
301 newStream(l, f, dontClose)

Callers

nothing calls this directly

Calls 3

toStreamFunction · 0.85
PushNilMethod · 0.80
PushStringMethod · 0.80

Tested by

no test coverage detected