From 8e33d8a2ca89d630f8890332df7e5737fc4608c8 Mon Sep 17 00:00:00 2001 From: Benoit Germain Date: Thu, 24 Oct 2024 17:36:35 +0200 Subject: Modernized some more trifles --- src/cancel.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/cancel.h') 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 MaskAll = LUA_MASKCALL | LUA_MASKRET | LUA_MASKLINE | LUA_MASKCOUNT }; +inline auto operator<=>(CancelOp const a_, CancelOp const b_) +{ + return static_cast>(a_) <=> static_cast>(b_); +} + // xxh64 of string "kCancelError" generated at https://www.pelock.com/products/hash-calculator static constexpr UniqueKey kCancelError{ 0x0630345FEF912746ull, "lanes.cancel_error" }; // 'raise_cancel_error' sentinel -- cgit v1.2.3-55-g6feb