Contin: Rename Exception propagation macros

This commit is contained in:
2025-10-25 14:11:09 -04:00
parent d54ef04c47
commit e297a260d9
+9 -3
View File
@@ -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)