diff options
Diffstat (limited to 'src/cancel.h')
-rw-r--r-- | src/cancel.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cancel.h b/src/cancel.h index 9a20774..9299ae1 100644 --- a/src/cancel.h +++ b/src/cancel.h | |||
@@ -46,18 +46,18 @@ enum CancelOp | |||
46 | }; | 46 | }; |
47 | 47 | ||
48 | // crc64/we of string "CANCEL_ERROR" generated at http://www.nitrxgen.net/hashgen/ | 48 | // crc64/we of string "CANCEL_ERROR" generated at http://www.nitrxgen.net/hashgen/ |
49 | static constexpr UniqueKey CANCEL_ERROR{ 0xe97d41626cc97577ull }; // 'cancel_error' sentinel | 49 | static constexpr UniqueKey CANCEL_ERROR{ 0xe97d41626cc97577ull }; // 'raise_cancel_error' sentinel |
50 | 50 | ||
51 | // crc64/we of string "CANCEL_TEST_KEY" generated at http://www.nitrxgen.net/hashgen/ | 51 | // crc64/we of string "CANCEL_TEST_KEY" generated at http://www.nitrxgen.net/hashgen/ |
52 | static constexpr UniqueKey CANCEL_TEST_KEY{ 0xe66f5960c57d133aull }; // used as registry key | 52 | static constexpr UniqueKey CANCEL_TEST_KEY{ 0xe66f5960c57d133aull }; // used as registry key |
53 | 53 | ||
54 | CancelResult thread_cancel(lua_State* L, Lane* s, CancelOp op_, double secs_, bool force_, double waitkill_timeout_); | 54 | CancelResult thread_cancel(lua_State* L, Lane* s, CancelOp op_, double secs_, bool force_, double waitkill_timeout_); |
55 | 55 | ||
56 | static inline int cancel_error( lua_State* L) | 56 | [[noreturn]] static inline void raise_cancel_error(lua_State* L) |
57 | { | 57 | { |
58 | STACK_GROW( L, 1); | 58 | STACK_GROW(L, 1); |
59 | CANCEL_ERROR.push(L); // special error value | 59 | CANCEL_ERROR.push(L); // special error value |
60 | return lua_error( L); // doesn't return | 60 | raise_lua_error(L); // doesn't return |
61 | } | 61 | } |
62 | 62 | ||
63 | // ################################################################################################ | 63 | // ################################################################################################ |