More fixes for Code/Framework

Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
Esteban Papp
2021-08-13 16:04:31 -07:00
parent 9c5b2768e2
commit e7f07147cb
2 changed files with 15 additions and 14 deletions
@@ -361,18 +361,19 @@ namespace AzFramework
// DebugPrintStack
// Prints the Lua stack starting from the bottom.
//=========================================================================
static void DebugPrintStack(lua_State* lua, const AZStd::string& prefix = "")
{
AZStd::string dump = prefix;
const int stackSize = lua_gettop(lua);
for (int stackIdx = 1; stackIdx <= stackSize; ++stackIdx)
{
dump += PrintLuaValue(lua, stackIdx);
dump += " "; // add separator
}
AZ_Warning("ScriptComponent", false, "Stack Dump: '%s'", dump.c_str());
}
// DO NOT DELETE StackDump is useful to debug the lua stack.
//static void DebugPrintStack(lua_State* lua, const AZStd::string& prefix = "")
//{
// AZStd::string dump = prefix;
// const int stackSize = lua_gettop(lua);
// for (int stackIdx = 1; stackIdx <= stackSize; ++stackIdx)
// {
// dump += PrintLuaValue(lua, stackIdx);
// dump += " "; // add separator
// }
//
// AZ_Warning("ScriptComponent", false, "Stack Dump: '%s'", dump.c_str());
//}
//=========================================================================
// Properties__IndexFindSubtable