MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / currentline

Function currentline

Source/Misc/lua/src/lua.c:4552–4558  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4550
4551
4552static int currentline (lua_State *L, CallInfo *ci) {
4553int pc = currentpc(L, ci);
4554if (pc < 0)
4555return -1; /* only active lua functions have current-line information */
4556else
4557return lua_getline(ci_func(ci)->l.p, pc);
4558}
4559
4560
4561/*

Callers 2

auxgetinfoFunction · 0.85
addinfoFunction · 0.85

Calls 1

currentpcFunction · 0.85

Tested by

no test coverage detected