mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-27 00:19:09 +00:00
Codechange: strongly type PersistentStorageID
This commit is contained in:
@@ -186,10 +186,10 @@ void AddChangedPersistentStorage(BasePersistentStorageArray *storage);
|
||||
|
||||
typedef PersistentStorageArray<int32_t, 16> OldPersistentStorage;
|
||||
|
||||
typedef uint32_t PersistentStorageID;
|
||||
using PersistentStorageID = PoolID<uint32_t, struct PersistentStorageIDTag, 0xFF000, 0xFFFFF>;
|
||||
|
||||
struct PersistentStorage;
|
||||
typedef Pool<PersistentStorage, PersistentStorageID, 1, 0xFF000> PersistentStoragePool;
|
||||
using PersistentStoragePool = Pool<PersistentStorage, PersistentStorageID, 1, PersistentStorageID::End().base()>;
|
||||
|
||||
extern PersistentStoragePool _persistent_storage_pool;
|
||||
|
||||
|
Reference in New Issue
Block a user