MCPcopy Create free account
hub / github.com/cloudwu/skynet / stacklevel

Function stacklevel

3rd/lua/ltests.c:982–990  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

980
981
982static int stacklevel (lua_State *L) {
983 unsigned long a = 0;
984 lua_pushinteger(L, (L->top.p - L->stack.p));
985 lua_pushinteger(L, stacksize(L));
986 lua_pushinteger(L, L->nCcalls);
987 lua_pushinteger(L, L->nci);
988 lua_pushinteger(L, (unsigned long)&a);
989 return 5;
990}
991
992
993static int table_query (lua_State *L) {

Callers

nothing calls this directly

Calls 1

lua_pushintegerFunction · 0.85

Tested by

no test coverage detected