diff options
author | Benoit Germain <benoit.germain@ubisoft.com> | 2024-10-24 17:36:35 +0200 |
---|---|---|
committer | Benoit Germain <benoit.germain@ubisoft.com> | 2024-10-24 17:36:35 +0200 |
commit | 8e33d8a2ca89d630f8890332df7e5737fc4608c8 (patch) | |
tree | eb4ee9a8f5f1164f09438c7c40315ac63c19039d /src/cancel.h | |
parent | 0d94a88b4de3973ce99fd77c6731c8219444db9e (diff) | |
download | lanes-8e33d8a2ca89d630f8890332df7e5737fc4608c8.tar.gz lanes-8e33d8a2ca89d630f8890332df7e5737fc4608c8.tar.bz2 lanes-8e33d8a2ca89d630f8890332df7e5737fc4608c8.zip |
Modernized some more trifles
Diffstat (limited to 'src/cancel.h')
-rw-r--r-- | src/cancel.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cancel.h b/src/cancel.h index e62cf0a..6dbea99 100644 --- a/src/cancel.h +++ b/src/cancel.h | |||
@@ -32,6 +32,11 @@ enum class CancelOp | |||
32 | MaskAll = LUA_MASKCALL | LUA_MASKRET | LUA_MASKLINE | LUA_MASKCOUNT | 32 | MaskAll = LUA_MASKCALL | LUA_MASKRET | LUA_MASKLINE | LUA_MASKCOUNT |
33 | }; | 33 | }; |
34 | 34 | ||
35 | inline auto operator<=>(CancelOp const a_, CancelOp const b_) | ||
36 | { | ||
37 | return static_cast<std::underlying_type_t<CancelOp>>(a_) <=> static_cast<std::underlying_type_t<CancelOp>>(b_); | ||
38 | } | ||
39 | |||
35 | // xxh64 of string "kCancelError" generated at https://www.pelock.com/products/hash-calculator | 40 | // xxh64 of string "kCancelError" generated at https://www.pelock.com/products/hash-calculator |
36 | static constexpr UniqueKey kCancelError{ 0x0630345FEF912746ull, "lanes.cancel_error" }; // 'raise_cancel_error' sentinel | 41 | static constexpr UniqueKey kCancelError{ 0x0630345FEF912746ull, "lanes.cancel_error" }; // 'raise_cancel_error' sentinel |
37 | 42 | ||