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

Kernel: Fix some formatting goofs in Process.h

This commit is contained in:
Andreas Kling 2020-02-24 13:48:37 +01:00
parent 0086daf9b0
commit f59747a3d8

View file

@ -647,25 +647,25 @@ inline u32 Thread::effective_priority() const
return m_priority + m_process.priority_boost() + m_priority_boost + m_extra_priority; return m_priority + m_process.priority_boost() + m_priority_boost + m_extra_priority;
} }
#define REQUIRE_NO_PROMISES \ #define REQUIRE_NO_PROMISES \
do { \ do { \
if (Process::current->has_promises()) { \ if (Process::current->has_promises()) { \
dbg() << "Has made a promise"; \ dbg() << "Has made a promise"; \
cli(); \ cli(); \
Process::current->crash(SIGABRT, 0); \ Process::current->crash(SIGABRT, 0); \
ASSERT_NOT_REACHED(); \ ASSERT_NOT_REACHED(); \
} \ } \
} while (0) } while (0)
#define REQUIRE_PROMISE(promise) \ #define REQUIRE_PROMISE(promise) \
do { \ do { \
if (Process::current->has_promises() \ if (Process::current->has_promises() \
&& !Process::current->has_promised(Pledge::promise)) { \ && !Process::current->has_promised(Pledge::promise)) { \
dbg() << "Has not pledged " << #promise; \ dbg() << "Has not pledged " << #promise; \
cli(); \ cli(); \
Process::current->crash(SIGABRT, 0); \ Process::current->crash(SIGABRT, 0); \
ASSERT_NOT_REACHED(); \ ASSERT_NOT_REACHED(); \
} \ } \
} while (0) } while (0)
} }