Serenity Operating System
at master 29 lines 572 B view raw
1/* 2 * Copyright (c) 2020, the SerenityOS developers. 3 * 4 * SPDX-License-Identifier: BSD-2-Clause 5 */ 6 7#include <LibWeb/Namespace.h> 8 9namespace Web::Namespace { 10 11#define __ENUMERATE_NAMESPACE(name, namespace_) DeprecatedFlyString name; 12ENUMERATE_NAMESPACES 13#undef __ENUMERATE_NAMESPACE 14 15[[gnu::constructor]] static void initialize() 16{ 17 static bool s_initialized = false; 18 if (s_initialized) 19 return; 20 21#define __ENUMERATE_NAMESPACE(name, namespace_) \ 22 name = namespace_; 23 ENUMERATE_NAMESPACES 24#undef __ENUMERATE_NAMESPACE 25 26 s_initialized = true; 27} 28 29}