ladybird/Libraries/LibWeb/Namespace.h

27 lines
841 B
C
Raw Normal View History

2020-10-10 02:48:05 +01:00
/*
* Copyright (c) 2020, the SerenityOS developers.
*
* SPDX-License-Identifier: BSD-2-Clause
2020-10-10 02:48:05 +01:00
*/
#pragma once
#include <AK/FlyString.h>
2025-07-19 19:35:33 -07:00
#include <LibWeb/Export.h>
2020-10-10 02:48:05 +01:00
namespace Web::Namespace {
#define ENUMERATE_NAMESPACES \
__ENUMERATE_NAMESPACE(HTML, "http://www.w3.org/1999/xhtml") \
__ENUMERATE_NAMESPACE(MathML, "http://www.w3.org/1998/Math/MathML") \
__ENUMERATE_NAMESPACE(SVG, "http://www.w3.org/2000/svg") \
__ENUMERATE_NAMESPACE(XLink, "http://www.w3.org/1999/xlink") \
__ENUMERATE_NAMESPACE(XML, "http://www.w3.org/XML/1998/namespace") \
__ENUMERATE_NAMESPACE(XMLNS, "http://www.w3.org/2000/xmlns/")
2025-07-19 19:35:33 -07:00
#define __ENUMERATE_NAMESPACE(name, namespace_) extern WEB_API FlyString name;
2020-10-10 02:48:05 +01:00
ENUMERATE_NAMESPACES
#undef __ENUMERATE_NAMESPACE
}