py/mperrno: Add MP_ECANCELED error code.

This is useful when binding asynchronous functions in C.

Signed-off-by: David Lechner <david@pybricks.com>
pull/7453/head
David Lechner 2019-06-02 15:57:27 -05:00 zatwierdzone przez Damien George
rodzic cb332ddae8
commit b51ae20c07
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -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