forked from electronicarts/CnC_Generals_Zero_Hour
-
Notifications
You must be signed in to change notification settings - Fork 140
Open
Labels
MinorSeverity: Minor < Major < Critical < BlockerSeverity: Minor < Major < Critical < Blocker
Description
GeneralsGameCode/Core/GameEngine/Source/Common/System/GameMemoryInitPools_GeneralsMD.inl
Lines 19 to 21 in afa8aa3
| // And please be careful of duplicates. They are not rejected. | |
| // not const -- we might override from INI | |
| static PoolSizeRec PoolSizes[] = |
This list currently contains 2 duplicates names (with different values): BoxPrototypeClass and WeaponBonusUpgrade, which need to be removed.
Maybe we can also order everything alphabetically (while keeping the W3D pools separate). We should be able to run either a compile-time check or run-time check in debug mode to verify that there are no duplicates.
MEMORY_POOL_GLUE_WITH_USERLOOKUP_CREATE( WeaponBonusUpgrade, "WeaponBonusUpgrade" )
As an aside, maybe it'd be nice if macros like the the above also include a check to verify that a memory pool exists for a given name.
Metadata
Metadata
Assignees
Labels
MinorSeverity: Minor < Major < Critical < BlockerSeverity: Minor < Major < Critical < Blocker