mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:47:36 +00:00
LibWeb: Initialize tag/attribute name globals in init-time constructors
This commit is contained in:
parent
cdf1282419
commit
40f4ccc3ea
7 changed files with 3 additions and 13 deletions
|
@ -32,7 +32,7 @@ namespace Web::SVG::TagNames {
|
|||
ENUMERATE_SVG_TAGS
|
||||
#undef __ENUMERATE_SVG_TAG
|
||||
|
||||
void initialize()
|
||||
[[gnu::constructor]] static void initialize()
|
||||
{
|
||||
static bool s_initialized = false;
|
||||
if (s_initialized)
|
||||
|
|
|
@ -30,8 +30,6 @@
|
|||
|
||||
namespace Web::SVG::TagNames {
|
||||
|
||||
void initialize();
|
||||
|
||||
#define ENUMERATE_SVG_GRAPHICS_TAGS \
|
||||
__ENUMERATE_SVG_TAG(svg) \
|
||||
__ENUMERATE_SVG_TAG(path) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue