| 1 | MODULE = MyTest::Typemap PACKAGE = MyTest::Error | ||||||||||
| 2 | PROTOTYPES: DISABLE | ||||||||||
| 3 | |||||||||||
| 4 | std::error_code operation_canceled () { | ||||||||||
| 5 | 1 | RETVAL = make_error_code(std::errc::operation_canceled); | |||||||||
| 6 | 1 | } | |||||||||
| 7 | |||||||||||
| 8 | ErrorCode operation_chain_canceled () { | ||||||||||
| 9 | 4 | ErrorCode orig(make_error_code(std::errc::operation_canceled)); | |||||||||
| 10 | 4 | RETVAL = ErrorCode(make_error_code(std::errc::connection_aborted), orig); | |||||||||
| 11 | 4 | ▶ | } | ||||||||
|
Branch: 1 branch
| |||||||||||