mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-22 17:24:48 -05:00
a4324ee6e9
We added these methods to propagate OOM errors at process startup, but we longer fret about these tiny OOM failures. Requiring that these init methods be called prohibits using these strings in processes that have not set up a MainThreadVM. So let's just remove them and initialize the strings in a sane manner. In doing so, this also standardizes how we initialize strings whose C++ variable name differs from their string value. Instead of special-casing these strings, we just include their string value in the x-macro list.
29 lines
794 B
C++
29 lines
794 B
C++
/*
|
|
* Copyright (c) 2023, Shannon Booth <shannon@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AK/FlyString.h>
|
|
|
|
namespace Web::XLink::AttributeNames {
|
|
|
|
#define ENUMERATE_XLINK_ATTRIBUTES \
|
|
__ENUMERATE_XLINK_ATTRIBUTE(actuate) \
|
|
__ENUMERATE_XLINK_ATTRIBUTE(arcrole) \
|
|
__ENUMERATE_XLINK_ATTRIBUTE(from) \
|
|
__ENUMERATE_XLINK_ATTRIBUTE(href) \
|
|
__ENUMERATE_XLINK_ATTRIBUTE(label) \
|
|
__ENUMERATE_XLINK_ATTRIBUTE(role) \
|
|
__ENUMERATE_XLINK_ATTRIBUTE(show) \
|
|
__ENUMERATE_XLINK_ATTRIBUTE(title) \
|
|
__ENUMERATE_XLINK_ATTRIBUTE(to) \
|
|
__ENUMERATE_XLINK_ATTRIBUTE(type)
|
|
|
|
#define __ENUMERATE_XLINK_ATTRIBUTE(name) extern FlyString name;
|
|
ENUMERATE_XLINK_ATTRIBUTES
|
|
#undef __ENUMERATE_XLINK_ATTRIBUTE
|
|
|
|
}
|