LibUnicode: Add temporary overload of value-from-string generator

This is a temporary mechanism while LibUnicode is in an in-between state
where some symbols are weakly linked and others are dynamically loaded.
The latter require an asm() label to be loaded.
This commit is contained in:
Timothy Flynn 2022-01-04 12:08:34 -05:00 committed by Linus Groh
parent ba4cdf34f8
commit cf8e11a562
Notes: sideshowbarker 2024-07-17 21:39:10 +09:00
3 changed files with 55 additions and 3 deletions

View file

@ -921,7 +921,7 @@ bool code_point_has_@enum_snake@(u32 code_point, @enum_title@ @enum_snake@)
for (auto const& alias : aliases)
hashes.set(alias.alias.hash(), alias.alias);
generate_value_from_string(generator, "{}_from_string"sv, enum_title, enum_snake, move(hashes));
generate_value_from_string_for_dynamic_loading(generator, "{}_from_string"sv, enum_title, enum_snake, move(hashes));
};
append_prop_search("GeneralCategory"sv, "general_category"sv, "s_general_categories"sv);