Serenity Operating System
at master 28 lines 469 B view raw
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 10namespace Web::Platform { 11 12EventLoopPlugin* s_the; 13 14EventLoopPlugin& EventLoopPlugin::the() 15{ 16 VERIFY(s_the); 17 return *s_the; 18} 19 20void EventLoopPlugin::install(EventLoopPlugin& plugin) 21{ 22 VERIFY(!s_the); 23 s_the = &plugin; 24} 25 26EventLoopPlugin::~EventLoopPlugin() = default; 27 28}