Skip to content

Commit 2984574

Browse files
committed
py/runtime: Reorder mp_handle_pending_behaviour_t enum.
This is functionally a no-op, although will change compiled code due to the numerical values of the enums changing. This is needed for a follow-up commit, to remove the static-inline `mp_handle_pending(bool)` helper function. Signed-off-by: Damien George <damien@micropython.org>
1 parent adbdded commit 2984574

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

py/runtime.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,11 @@ typedef enum {
5252
MP_ARG_KW_ONLY = 0x200,
5353
} mp_arg_flag_t;
5454

55+
// These first two enum values match the original signature of `mp_handle_pending(bool)`.
5556
typedef enum {
57+
MP_HANDLE_PENDING_CALLBACKS_AND_CLEAR_EXCEPTIONS = false,
58+
MP_HANDLE_PENDING_CALLBACKS_AND_EXCEPTIONS = true,
5659
MP_HANDLE_PENDING_CALLBACKS_ONLY,
57-
MP_HANDLE_PENDING_CALLBACKS_AND_EXCEPTIONS,
58-
MP_HANDLE_PENDING_CALLBACKS_AND_CLEAR_EXCEPTIONS,
5960
} mp_handle_pending_behaviour_t;
6061

6162
typedef union _mp_arg_val_t {

0 commit comments

Comments
 (0)