MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / aux_lines

Function aux_lines

third-party/lua-5.2.4/src/liolib.c:303–313  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

301
302
303static void aux_lines (lua_State *L, int toclose) {
304 int i;
305 int n = lua_gettop(L) - 1; /* number of arguments to read */
306 /* ensure that arguments will fit here and into 'io_readline' stack */
307 luaL_argcheck(L, n <= LUA_MINSTACK - 3, LUA_MINSTACK - 3, "too many options");
308 lua_pushvalue(L, 1); /* file handle */
309 lua_pushinteger(L, n); /* number of arguments to read */
310 lua_pushboolean(L, toclose); /* close/not close file when finished */
311 for (i = 1; i <= n; i++) lua_pushvalue(L, i + 1); /* copy arguments */
312 lua_pushcclosure(L, io_readline, 3 + n);
313}
314
315
316static int f_lines (lua_State *L) {

Callers 2

f_linesFunction · 0.70
io_linesFunction · 0.70

Calls 5

lua_gettopFunction · 0.70
lua_pushvalueFunction · 0.70
lua_pushintegerFunction · 0.70
lua_pushbooleanFunction · 0.70
lua_pushcclosureFunction · 0.70

Tested by

no test coverage detected