1
0
Fork 0

Codechange: strongly type EngineRenew

pull/13511/head
Rubidium 2025-01-31 21:30:17 +01:00 committed by rubidium42
parent b575d5b8e4
commit 7cc194e745
1 changed files with 2 additions and 2 deletions

View File

@ -15,14 +15,14 @@
#include "engine_type.h" #include "engine_type.h"
#include "group_type.h" #include "group_type.h"
typedef uint16_t EngineRenewID; using EngineRenewID = PoolID<uint16_t, struct EngineRenewIDTag, 64000, 0xFFFF>;
/** /**
* Memory pool for engine renew elements. DO NOT USE outside of engine.c. Is * Memory pool for engine renew elements. DO NOT USE outside of engine.c. Is
* placed here so the only exception to this rule, the saveload code, can use * placed here so the only exception to this rule, the saveload code, can use
* it. * it.
*/ */
typedef Pool<EngineRenew, EngineRenewID, 16, 64000> EngineRenewPool; using EngineRenewPool = Pool<EngineRenew, EngineRenewID, 16, EngineRenewID::End().base()>;
extern EngineRenewPool _enginerenew_pool; extern EngineRenewPool _enginerenew_pool;
/** /**