aboutsummaryrefslogtreecommitdiff
path: root/src/cancel.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/cancel.h5
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
35inline 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
36static constexpr UniqueKey kCancelError{ 0x0630345FEF912746ull, "lanes.cancel_error" }; // 'raise_cancel_error' sentinel 41static constexpr UniqueKey kCancelError{ 0x0630345FEF912746ull, "lanes.cancel_error" }; // 'raise_cancel_error' sentinel
37 42