mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:27:43 +00:00
Kernel: Switch static_asserts of a type size to AK::AssertSize
This will provide better debug ability when the size comparison fails.
This commit is contained in:
parent
112de58fe0
commit
472454cded
15 changed files with 25 additions and 19 deletions
|
@ -132,8 +132,8 @@ private:
|
|||
u64 m_raw;
|
||||
};
|
||||
|
||||
static_assert(sizeof(PageDirectoryEntry) == 8);
|
||||
static_assert(sizeof(PageTableEntry) == 8);
|
||||
static_assert(AssertSize<PageDirectoryEntry, 8>());
|
||||
static_assert(AssertSize<PageTableEntry, 8>());
|
||||
|
||||
class PageDirectoryPointerTable {
|
||||
public:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue