MCPcopy Create free account
hub / github.com/Overload-Technologies/Overload / printstack

Function printstack

Dependencies/lua/src/ltests.c:815–824  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

813
814
815static void printstack (lua_State *L) {
816 int i;
817 int n = lua_gettop(L);
818 printf("stack: >>\n");
819 for (i = 1; i <= n; i++) {
820 printf("%3d: %s\n", i, luaL_tolstring(L, i, NULL));
821 lua_pop(L, 1);
822 }
823 printf("<<\n");
824}
825
826
827static int get_limits (lua_State *L) {

Callers 1

runCFunction · 0.85

Calls 2

lua_gettopFunction · 0.85
luaL_tolstringFunction · 0.70

Tested by

no test coverage detected