diff options
Diffstat (limited to 'src/cancel.h')
-rw-r--r-- | src/cancel.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cancel.h b/src/cancel.h index bbc7787..8c8063f 100644 --- a/src/cancel.h +++ b/src/cancel.h | |||
@@ -1,7 +1,8 @@ | |||
1 | #pragma once | 1 | #pragma once |
2 | 2 | ||
3 | #ifdef __cplusplus | 3 | #ifdef __cplusplus |
4 | extern "C" { | 4 | extern "C" |
5 | { | ||
5 | #endif // __cplusplus | 6 | #endif // __cplusplus |
6 | #include "lua.h" | 7 | #include "lua.h" |
7 | #include "lualib.h" | 8 | #include "lualib.h" |
@@ -24,7 +25,7 @@ enum class CancelRequest | |||
24 | { | 25 | { |
25 | None, // no pending cancel request | 26 | None, // no pending cancel request |
26 | Soft, // user wants the lane to cancel itself manually on cancel_test() | 27 | Soft, // user wants the lane to cancel itself manually on cancel_test() |
27 | Hard // user wants the lane to be interrupted (meaning code won't return from those functions) from inside linda:send/receive calls | 28 | Hard // user wants the lane to be interrupted (meaning code won't return from those functions) from inside linda:send/receive calls |
28 | }; | 29 | }; |
29 | 30 | ||
30 | enum class CancelResult | 31 | enum class CancelResult |