mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-28 13:11:15 -03:00
Simplify ASSERT_SORT_ORDER
In practice this only looked at the name property, so we can simplify it by using an ordinary template function instead of a macro.
This commit is contained in:
@@ -165,7 +165,7 @@ static constexpr const input_function_metadata_t input_function_metadata[] = {
|
||||
{L"yank-pop", readline_cmd_t::yank_pop},
|
||||
};
|
||||
|
||||
ASSERT_SORT_ORDER(input_function_metadata, .name);
|
||||
ASSERT_SORTED_BY_NAME(input_function_metadata);
|
||||
static_assert(sizeof(input_function_metadata) / sizeof(input_function_metadata[0]) ==
|
||||
input_function_count,
|
||||
"input_function_metadata size mismatch with input_common. Did you forget to update "
|
||||
|
||||
Reference in New Issue
Block a user