Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Snapchat/KeyDB
/ tofile
Function
tofile
deps/lua/src/liolib.c:72–77 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
70
71
72
static FILE *tofile (lua_State *L) {
73
FILE **f = tofilep(L);
74
if (*f == NULL)
75
luaL_error(L,
"attempt to use a closed file"
);
76
return *f;
77
}
78
79
80
Callers
8
io_close
Function · 0.85
g_iofile
Function · 0.85
f_lines
Function · 0.85
f_read
Function · 0.85
f_write
Function · 0.85
f_seek
Function · 0.85
f_setvbuf
Function · 0.85
f_flush
Function · 0.85
Calls
1
luaL_error
Function · 0.85
Tested by
no test coverage detected