ladybird/Libraries/LibWeb/Namespace.cpp

29 lines
544 B
C++
Raw Normal View History

2020-10-10 01:48:05 +00:00
/*
* Copyright (c) 2020, the SerenityOS developers.
*
* SPDX-License-Identifier: BSD-2-Clause
2020-10-10 01:48:05 +00:00
*/
#include <LibWeb/Namespace.h>
namespace Web::Namespace {
#define __ENUMERATE_NAMESPACE(name, namespace_) FlyString name;
2020-10-10 01:48:05 +00:00
ENUMERATE_NAMESPACES
#undef __ENUMERATE_NAMESPACE
void initialize_strings()
2020-10-10 01:48:05 +00:00
{
static bool s_initialized = false;
VERIFY(!s_initialized);
2020-10-10 01:48:05 +00:00
#define __ENUMERATE_NAMESPACE(name, namespace_) \
name = namespace_##_fly_string;
2020-10-10 01:48:05 +00:00
ENUMERATE_NAMESPACES
#undef __ENUMERATE_NAMESPACE
s_initialized = true;
}
}