mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-24 00:24:38 +00:00
LibCore: Assert instead of crashing in CEventLoop::current()
This commit is contained in:
committed by
Andreas Kling
parent
8aef0a0755
commit
2f9be662ef
@@ -176,7 +176,9 @@ CEventLoop& CEventLoop::main()
|
||||
|
||||
CEventLoop& CEventLoop::current()
|
||||
{
|
||||
return *s_event_loop_stack->last();
|
||||
CEventLoop* event_loop = s_event_loop_stack->last();
|
||||
ASSERT(event_loop != nullptr);
|
||||
return *event_loop;
|
||||
}
|
||||
|
||||
void CEventLoop::quit(int code)
|
||||
|
||||
Reference in New Issue
Block a user