mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2026-06-28 04:00:33 +00:00
Enable -Wexit-time-destructors for all in-tree library targets and update process-lifetime library statics so they no longer register exit-time destructors. Long-lived caches, lookup tables, singleton registries, and generated constants now use NeverDestroyed or leaked references where the data is intended to live until process exit. Update LibWeb, LibLine, and the binding generators so regenerated sources follow the same rule instead of reintroducing destructed statics.
16 lines
392 B
C++
16 lines
392 B
C++
/*
|
|
* Copyright (c) 2025, Shannon Booth <shannon@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#include <LibWeb/ServiceWorker/EventNames.h>
|
|
|
|
namespace Web::ServiceWorker::EventNames {
|
|
|
|
#define __ENUMERATE_SERVICE_WORKER_EVENT(name) \
|
|
FlyString const& name = *new FlyString(#name##_fly_string);
|
|
ENUMERATE_SERVICE_WORKER_EVENTS
|
|
#undef __ENUMERATE_SERVICE_WORKER_EVENT
|
|
|
|
}
|