mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
Kernel: Fix some formatting goofs in Process.h
This commit is contained in:
parent
0086daf9b0
commit
f59747a3d8
Notes:
sideshowbarker
2024-07-19 09:05:07 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/f59747a3d86
1 changed files with 12 additions and 12 deletions
|
@ -647,25 +647,25 @@ inline u32 Thread::effective_priority() const
|
|||
return m_priority + m_process.priority_boost() + m_priority_boost + m_extra_priority;
|
||||
}
|
||||
|
||||
#define REQUIRE_NO_PROMISES \
|
||||
do { \
|
||||
#define REQUIRE_NO_PROMISES \
|
||||
do { \
|
||||
if (Process::current->has_promises()) { \
|
||||
dbg() << "Has made a promise"; \
|
||||
cli(); \
|
||||
dbg() << "Has made a promise"; \
|
||||
cli(); \
|
||||
Process::current->crash(SIGABRT, 0); \
|
||||
ASSERT_NOT_REACHED(); \
|
||||
} \
|
||||
ASSERT_NOT_REACHED(); \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
#define REQUIRE_PROMISE(promise) \
|
||||
do { \
|
||||
#define REQUIRE_PROMISE(promise) \
|
||||
do { \
|
||||
if (Process::current->has_promises() \
|
||||
&& !Process::current->has_promised(Pledge::promise)) { \
|
||||
dbg() << "Has not pledged " << #promise; \
|
||||
cli(); \
|
||||
dbg() << "Has not pledged " << #promise; \
|
||||
cli(); \
|
||||
Process::current->crash(SIGABRT, 0); \
|
||||
ASSERT_NOT_REACHED(); \
|
||||
} \
|
||||
ASSERT_NOT_REACHED(); \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue