mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
AK+Everywhere: Replace DistinctNumeric bool parameters with named ones
This means that rather than this: ``` AK_TYPEDEF_DISTINCT_NUMERIC_GENERAL(u64, true, true, false, false, false, true, FunctionAddress); ``` We now have this: ``` AK_TYPEDEF_DISTINCT_NUMERIC_GENERAL(u64, FunctionAddress, Arithmetic, Comparison, Increment); ``` Which is a lot more readable. :^) Co-authored-by: Ali Mohammad Pur <mpfard@serenityos.org>
This commit is contained in:
parent
24c0a6e9a4
commit
c33eae24f9
Notes:
sideshowbarker
2024-07-17 23:02:37 +09:00
Author: https://github.com/AtkinsSJ
Commit: c33eae24f9
Pull-request: https://github.com/SerenityOS/serenity/pull/16006
Reviewed-by: https://github.com/alimpfard
7 changed files with 133 additions and 92 deletions
|
@ -12,7 +12,7 @@
|
|||
|
||||
namespace JS::Bytecode {
|
||||
|
||||
AK_TYPEDEF_DISTINCT_NUMERIC_GENERAL(size_t, false, true, false, false, false, false, StringTableIndex);
|
||||
AK_TYPEDEF_DISTINCT_NUMERIC_GENERAL(size_t, StringTableIndex, Comparison);
|
||||
|
||||
class StringTable {
|
||||
AK_MAKE_NONMOVABLE(StringTable);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue