mirror of
https://github.com/micropython/micropython.git
synced 2026-01-08 21:20:13 +01:00
slice: Allow building with MICROPY_ENABLE_SLICE=0.
This commit is contained in:
2
py/vm.c
2
py/vm.c
@@ -410,6 +410,7 @@ bool mp_execute_byte_code_2(const byte **ip_in_out, mp_obj_t *fastn, mp_obj_t **
|
||||
sp++;
|
||||
break;
|
||||
|
||||
#if MICROPY_ENABLE_SLICE
|
||||
case MP_BC_BUILD_SLICE:
|
||||
DECODE_UINT;
|
||||
if (unum == 2) {
|
||||
@@ -421,6 +422,7 @@ bool mp_execute_byte_code_2(const byte **ip_in_out, mp_obj_t *fastn, mp_obj_t **
|
||||
assert(0);
|
||||
}
|
||||
break;
|
||||
#endif
|
||||
|
||||
case MP_BC_UNPACK_SEQUENCE:
|
||||
DECODE_UINT;
|
||||
|
||||
Reference in New Issue
Block a user