1
0
Fork 0

Codechange: strongly type PersistentStorageID

pull/13402/head
Rubidium 2025-02-01 00:13:50 +01:00
parent c4cede2279
commit b09eae9494
1 changed files with 2 additions and 2 deletions

View File

@ -186,10 +186,10 @@ void AddChangedPersistentStorage(BasePersistentStorageArray *storage);
typedef PersistentStorageArray<int32_t, 16> OldPersistentStorage; typedef PersistentStorageArray<int32_t, 16> OldPersistentStorage;
typedef uint32_t PersistentStorageID; using PersistentStorageID = PoolID<uint32_t, struct PersistentStorageIDTag, 0xFF000, 0xFFFFF>;
struct PersistentStorage; struct PersistentStorage;
typedef Pool<PersistentStorage, PersistentStorageID, 1, 0xFF000> PersistentStoragePool; using PersistentStoragePool = Pool<PersistentStorage, PersistentStorageID, 1, PersistentStorageID::End().base()>;
extern PersistentStoragePool _persistent_storage_pool; extern PersistentStoragePool _persistent_storage_pool;