More fixes for Code/Framework
Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user