aboutsummaryrefslogtreecommitdiff
path: root/src/cancel.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/cancel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cancel.cpp b/src/cancel.cpp
index a62fcdf..4f04857 100644
--- a/src/cancel.cpp
+++ b/src/cancel.cpp
@@ -50,7 +50,7 @@ THE SOFTWARE.
50 * Returns CANCEL_SOFT/HARD if any locks are to be exited, and 'raise_cancel_error()' called, 50 * Returns CANCEL_SOFT/HARD if any locks are to be exited, and 'raise_cancel_error()' called,
51 * to make execution of the lane end. 51 * to make execution of the lane end.
52 */ 52 */
53[[nodiscard]] CancelRequest cancel_test(lua_State* const L_) 53[[nodiscard]] CancelRequest CheckCancelRequest(lua_State* const L_)
54{ 54{
55 Lane* const _lane{ kLanePointerRegKey.readLightUserDataValue<Lane>(L_) }; 55 Lane* const _lane{ kLanePointerRegKey.readLightUserDataValue<Lane>(L_) };
56 // 'lane' is nullptr for the original main state (and no-one can cancel that) 56 // 'lane' is nullptr for the original main state (and no-one can cancel that)
@@ -129,7 +129,7 @@ CancelOp WhichCancelOp(std::string_view const& opString_)
129// 129//
130LUAG_FUNC(cancel_test) 130LUAG_FUNC(cancel_test)
131{ 131{
132 CancelRequest _test{ cancel_test(L_) }; 132 CancelRequest _test{ CheckCancelRequest(L_) };
133 lua_pushboolean(L_, _test != CancelRequest::None); 133 lua_pushboolean(L_, _test != CancelRequest::None);
134 return 1; 134 return 1;
135} 135}