2020-10-10 01:48:05 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2020, the SerenityOS developers.
|
|
|
|
*
|
2021-04-22 08:24:48 +00:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2020-10-10 01:48:05 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <LibWeb/Namespace.h>
|
|
|
|
|
|
|
|
namespace Web::Namespace {
|
|
|
|
|
2023-11-04 17:42:04 +00:00
|
|
|
#define __ENUMERATE_NAMESPACE(name, namespace_) FlyString name;
|
2020-10-10 01:48:05 +00:00
|
|
|
ENUMERATE_NAMESPACES
|
|
|
|
#undef __ENUMERATE_NAMESPACE
|
|
|
|
|
2023-08-07 10:07:35 +00:00
|
|
|
void initialize_strings()
|
2020-10-10 01:48:05 +00:00
|
|
|
{
|
|
|
|
static bool s_initialized = false;
|
2023-03-18 14:39:37 +00:00
|
|
|
VERIFY(!s_initialized);
|
2020-10-10 01:48:05 +00:00
|
|
|
|
|
|
|
#define __ENUMERATE_NAMESPACE(name, namespace_) \
|
2023-11-04 17:42:04 +00:00
|
|
|
name = namespace_##_fly_string;
|
2020-10-10 01:48:05 +00:00
|
|
|
ENUMERATE_NAMESPACES
|
|
|
|
#undef __ENUMERATE_NAMESPACE
|
|
|
|
|
|
|
|
s_initialized = true;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|