ladybird/Userland/Libraries/LibWeb/Namespace.cpp
Timothy Flynn f3db548a3d AK+Everywhere: Rename FlyString to DeprecatedFlyString
DeprecatedFlyString relies heavily on DeprecatedString's StringImpl, so
let's rename it to A) match the name of DeprecatedString, B) write a new
FlyString class that is tied to String.
2023-01-09 23:00:24 +00:00

30 lines
572 B
C++

/*
* Copyright (c) 2020, the SerenityOS developers.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <LibWeb/Namespace.h>
namespace Web::Namespace {
#define __ENUMERATE_NAMESPACE(name, namespace_) DeprecatedFlyString name;
ENUMERATE_NAMESPACES
#undef __ENUMERATE_NAMESPACE
[[gnu::constructor]] static void initialize()
{
static bool s_initialized = false;
if (s_initialized)
return;
#define __ENUMERATE_NAMESPACE(name, namespace_) \
name = namespace_;
ENUMERATE_NAMESPACES
#undef __ENUMERATE_NAMESPACE
s_initialized = true;
}
}