Skip to content

Instantly share code, notes, and snippets.

Avatar

Lorenzo Fontana fntlnz

View GitHub Profile
@leodido
leodido / dumpstack.cpp
Created Sep 23, 2019
Dump the Lua stack
View dumpstack.cpp
/*
* dump_stack(ls);
*/
void dump_stack(lua_State *L)
{
int i;
int top = lua_gettop(L);
printf("\n#### BOS ####\n");
for(i = top; i >= 1; i--)
{