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