MCPcopy Index your code
hub / github.com/yuin/gopher-lua / errorIfFileIsClosed

Function errorIfFileIsClosed

iolib.go:59–63  ·  view source on GitHub ↗
(L *LState, file *lFile)

Source from the content-addressed store, hash-verified

57}
58
59func errorIfFileIsClosed(L *LState, file *lFile) {
60 if file.closed {
61 L.ArgError(1, "file is closed")
62 }
63}
64
65func newFile(L *LState, file *os.File, path string, flag int, perm os.FileMode, writable, readable bool) (*LUserData, error) {
66 ud := L.NewUserData()

Callers 3

fileWriteAuxFunction · 0.85
fileFlushAuxFunction · 0.85
fileReadAuxFunction · 0.85

Calls 1

ArgErrorMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…