5 std::stringstream ostr;
8 ostr <<
"top=" << top <<
":\n";
9 for (i = 1; i <= top; ++i) {
13 ostr <<
" " << i <<
": '" <<
lua_tostring(L, i) <<
"'\n";
16 ostr <<
" " << i <<
": " <<
static std::string dumpLuaState(lua_State *L)
const void *() lua_topointer(lua_State *L, int idx)
#define lua_tonumber(L, i)
int() lua_toboolean(lua_State *L, int idx)
int() lua_type(lua_State *L, int idx)
int() lua_gettop(lua_State *L)
#define lua_tostring(L, i)
const char *() lua_typename(lua_State *L, int tp)