Skip to content

Commit

Permalink
web-base: Added namespace definitions.
Browse files Browse the repository at this point in the history
  • Loading branch information
sleepy-monax committed Mar 22, 2024
1 parent 7652ffe commit a35c264
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/web/web-base/defs/namespaces.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
NAMESPACE(HTML, "http://www.w3.org/1999/xhtml")
NAMESPACE(MathML, "http://www.w3.org/1998/Math/MathML")
NAMESPACE(SVG, "http://www.w3.org/2000/svg")
NAMESPACE(XLink, "http://www.w3.org/1999/xlink")
NAMESPACE(XML, "http://www.w3.org/XML/1998/namespace")
NAMESPACE(XMLNS, "http://www.w3.org/2000/xmlns/")
11 changes: 11 additions & 0 deletions src/web/web-base/namespaces.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#pragma once

namespace Web {

enum struct Namespace {
#define NAMESPACE(IDENT, _) IDENT,
#include "defs/namespaces.inc"
#undef NAMESPACE
};

} // namespace Web

0 comments on commit a35c264

Please sign in to comment.