Contin: Rename Exception propagation macros
This commit is contained in:
@@ -49,12 +49,18 @@ public:
|
|||||||
* This macro should be used by the caller to bubble the exception to the
|
* This macro should be used by the caller to bubble the exception to the
|
||||||
* caller.
|
* caller.
|
||||||
*/
|
*/
|
||||||
#define CONT_SET_EXC(continuation, type, exc_obj) \
|
#define CALLEE_SETEXC(continuation, type, exc_obj) \
|
||||||
(continuation)->exception = std::make_exception_ptr<type>(exc_obj)
|
(continuation)->exception = std::make_exception_ptr<type>(exc_obj)
|
||||||
|
|
||||||
#define CONT_SET_EXC_AND_RET(continuation, type, exc_obj) \
|
#define CALLEE_SETEXC_CALLCB(continuation, type, exc_obj) \
|
||||||
do { \
|
do { \
|
||||||
(continuation)->exception = std::make_exception_ptr<type>(exc_obj); \
|
CALLEE_SETEXC(continuation, type, exc_obj); \
|
||||||
|
(continuation)->callOriginalCb(); \
|
||||||
|
} while(0)
|
||||||
|
|
||||||
|
#define CALLEE_SETEXC_CALLCB_RET(continuation, type, exc_obj) \
|
||||||
|
do { \
|
||||||
|
CALLEE_SETEXC_CALLCB(continuation, type, exc_obj); \
|
||||||
return; \
|
return; \
|
||||||
} while(0)
|
} while(0)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user