Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Serial-Studio/Serial-Studio
/ tofile
Function
tofile
lib/lua/src/liolib.c:187–193 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
185
186
187
static FILE *tofile (lua_State *L) {
188
LStream *p = tolstream(L);
189
if (l_unlikely(isclosed(p)))
190
luaL_error(L,
"attempt to use a closed file"
);
191
lua_assert(p->f);
192
return p->f;
193
}
194
195
196
/*
Callers
9
f_close
Function · 0.85
g_iofile
Function · 0.85
f_lines
Function · 0.85
io_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