mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-07 00:56:14 +00:00
Everywhere: Hoist the Libraries folder to the top-level
This commit is contained in:
committed by
Andreas Kling
parent
950e819ee7
commit
93712b24bf
28
Libraries/LibWeb/Namespace.cpp
Normal file
28
Libraries/LibWeb/Namespace.cpp
Normal file
@@ -0,0 +1,28 @@
|
||||
/*
|
||||
* Copyright (c) 2020, the SerenityOS developers.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#include <LibWeb/Namespace.h>
|
||||
|
||||
namespace Web::Namespace {
|
||||
|
||||
#define __ENUMERATE_NAMESPACE(name, namespace_) FlyString name;
|
||||
ENUMERATE_NAMESPACES
|
||||
#undef __ENUMERATE_NAMESPACE
|
||||
|
||||
void initialize_strings()
|
||||
{
|
||||
static bool s_initialized = false;
|
||||
VERIFY(!s_initialized);
|
||||
|
||||
#define __ENUMERATE_NAMESPACE(name, namespace_) \
|
||||
name = namespace_##_fly_string;
|
||||
ENUMERATE_NAMESPACES
|
||||
#undef __ENUMERATE_NAMESPACE
|
||||
|
||||
s_initialized = true;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user