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