Coverage Report

Created: 2025-03-04 07:22

/src/serenity/Userland/Libraries/LibWeb/Platform/EventLoopPlugin.cpp
Line
Count
Source (jump to first uncovered line)
1
/*
2
 * Copyright (c) 2022, Andreas Kling <kling@serenityos.org>
3
 *
4
 * SPDX-License-Identifier: BSD-2-Clause
5
 */
6
7
#include <AK/Function.h>
8
#include <LibWeb/Platform/EventLoopPlugin.h>
9
10
namespace Web::Platform {
11
12
EventLoopPlugin* s_the;
13
14
EventLoopPlugin& EventLoopPlugin::the()
15
0
{
16
0
    VERIFY(s_the);
17
0
    return *s_the;
18
0
}
19
20
void EventLoopPlugin::install(EventLoopPlugin& plugin)
21
0
{
22
0
    VERIFY(!s_the);
23
0
    s_the = &plugin;
24
0
}
25
26
0
EventLoopPlugin::~EventLoopPlugin() = default;
27
28
}