MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / currentline

Function currentline

deps/lua/src/ldebug.c:44–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42
43
44static int currentline (lua_State *L, CallInfo *ci) {
45 int pc = currentpc(L, ci);
46 if (pc < 0)
47 return -1; /* only active lua functions have current-line information */
48 else
49 return getline(ci_func(ci)->l.p, pc);
50}
51
52
53/*

Callers 2

auxgetinfoFunction · 0.85
addinfoFunction · 0.85

Calls 1

currentpcFunction · 0.85

Tested by

no test coverage detected