1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 12:07:45 +00:00

AK: In Userspace.h, #if defined(KERNEL) => #ifdef KERNEL

This commit is contained in:
Emanuele Torre 2020-08-01 07:18:24 +02:00 committed by Andreas Kling
parent 5bf994d2d9
commit 6c1ba09fbd

View file

@ -42,7 +42,7 @@ public:
operator bool() const { return m_ptr; } operator bool() const { return m_ptr; }
operator FlatPtr() const { return (FlatPtr)m_ptr; } operator FlatPtr() const { return (FlatPtr)m_ptr; }
#if defined(KERNEL) #ifdef KERNEL
Userspace(FlatPtr ptr) Userspace(FlatPtr ptr)
: m_ptr(ptr) : m_ptr(ptr)
{ {
@ -60,7 +60,7 @@ public:
#endif #endif
private: private:
#if defined(KERNEL) #ifdef KERNEL
FlatPtr m_ptr { 0 }; FlatPtr m_ptr { 0 };
#else #else
T m_ptr { nullptr }; T m_ptr { nullptr };