mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-21 14:35:46 +00:00
kernel/handle_table: Move private static functions into the cpp file
These don't depend on class state, and are effectively implementation details, so they can go into the cpp file .
This commit is contained in:
parent
6fac9e5b31
commit
f1a863e583
2 changed files with 9 additions and 7 deletions
|
@ -93,13 +93,6 @@ private:
|
|||
/// This is the maximum limit of handles allowed per process in Horizon
|
||||
static constexpr std::size_t MAX_COUNT = 1024;
|
||||
|
||||
static u16 GetSlot(Handle handle) {
|
||||
return handle >> 15;
|
||||
}
|
||||
static u16 GetGeneration(Handle handle) {
|
||||
return handle & 0x7FFF;
|
||||
}
|
||||
|
||||
/// Stores the Object referenced by the handle or null if the slot is empty.
|
||||
std::array<SharedPtr<Object>, MAX_COUNT> objects;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue