mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 16:44:58 +00:00
AK: Decorate AK::TriState with [[nodiscard]]
TriState is another type of return code, it's value should always be observed.
This commit is contained in:
parent
3319803bd9
commit
adb83d3adc
1 changed files with 5 additions and 3 deletions
|
@ -62,8 +62,8 @@ typedef i64 int64_t;
|
||||||
typedef int pid_t;
|
typedef int pid_t;
|
||||||
|
|
||||||
#else
|
#else
|
||||||
# include <stdint.h>
|
|
||||||
# include <stddef.h>
|
# include <stddef.h>
|
||||||
|
# include <stdint.h>
|
||||||
# include <sys/types.h>
|
# include <sys/types.h>
|
||||||
|
|
||||||
# ifdef __ptrdiff_t
|
# ifdef __ptrdiff_t
|
||||||
|
@ -97,6 +97,8 @@ inline constexpr size_t align_up_to(const size_t value, const size_t alignment)
|
||||||
return (value + (alignment - 1)) & ~(alignment - 1);
|
return (value + (alignment - 1)) & ~(alignment - 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
enum class TriState : u8 { False,
|
enum class [[nodiscard]] TriState : u8 {
|
||||||
|
False,
|
||||||
True,
|
True,
|
||||||
Unknown };
|
Unknown
|
||||||
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue