File diff r11362:d9d4adbc4779 → r11363:6906c490a00e
src/misc/dbg_helpers.cpp
Show inline comments
 
@@ -62,25 +62,25 @@ CStrA TileStr(TileIndex tile)
 
{
 
	CStrA out;
 
	out.Format("0x%04X (%d, %d)", tile, TileX(tile), TileY(tile));
 
	return out.Transfer();
 
}
 

	
 
/** Keep track of the last assigned type_id. Used for anti-recursion. */
 
/*static*/ size_t& DumpTarget::LastTypeId()
 
/** Keep track of the last assigned type_id. Used for anti-recursion.
 
 *static*/ size_t& DumpTarget::LastTypeId()
 
{
 
	static size_t last_type_id = 0;
 
	return last_type_id;
 
}
 

	
 
/** Return structured name of the current class/structure. */
 
CStrA DumpTarget::GetCurrentStructName()
 
{
 
	CStrA out;
 
	if (!m_cur_struct.empty()) {
 
		// we are inside some named struct, return its name
 
		/* we are inside some named struct, return its name */
 
		out = m_cur_struct.top();
 
	}
 
	return out.Transfer();
 
}
 

	
 
/**