Skip to content

Reorganize memory pool size list #2054

@Caball009

Description

@Caball009

// 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

No one assigned

    Labels

    MinorSeverity: Minor < Major < Critical < Blocker

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions