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.
24 lines
648 B
C++
24 lines
648 B
C++
/*
|
|
* Copyright (c) 2025, Shannon Booth <shannon@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AK/FlyString.h>
|
|
|
|
namespace Web::ServiceWorker::EventNames {
|
|
|
|
#define ENUMERATE_SERVICE_WORKER_EVENTS \
|
|
__ENUMERATE_SERVICE_WORKER_EVENT(activate) \
|
|
__ENUMERATE_SERVICE_WORKER_EVENT(fetch) \
|
|
__ENUMERATE_SERVICE_WORKER_EVENT(install) \
|
|
__ENUMERATE_SERVICE_WORKER_EVENT(message) \
|
|
__ENUMERATE_SERVICE_WORKER_EVENT(messageerror)
|
|
|
|
#define __ENUMERATE_SERVICE_WORKER_EVENT(name) extern FlyString const& name;
|
|
ENUMERATE_SERVICE_WORKER_EVENTS
|
|
#undef __ENUMERATE_SERVICE_WORKER_EVENT
|
|
|
|
}
|