From b51ae20c0714ea987ac0988c5d02b59e08048632 Mon Sep 17 00:00:00 2001 From: David Lechner Date: Sun, 2 Jun 2019 15:57:27 -0500 Subject: [PATCH] py/mperrno: Add MP_ECANCELED error code. This is useful when binding asynchronous functions in C. Signed-off-by: David Lechner --- py/mperrno.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/py/mperrno.h b/py/mperrno.h index 0cad75a17c..6f6d816b8f 100644 --- a/py/mperrno.h +++ b/py/mperrno.h @@ -81,6 +81,7 @@ #define MP_EHOSTUNREACH (113) // No route to host #define MP_EALREADY (114) // Operation already in progress #define MP_EINPROGRESS (115) // Operation now in progress +#define MP_ECANCELED (125) // Operation canceled #else @@ -136,6 +137,7 @@ #define MP_EHOSTUNREACH EHOSTUNREACH #define MP_EALREADY EALREADY #define MP_EINPROGRESS EINPROGRESS +#define MP_ECANCELED ECANCELED #endif