Skip to content

Commit 6881618

Browse files
committed
zephyr/mpconfigport: Enable sys.maxsize.
Costs +48 bytes. Useful to introspect the target. Signed-off-by: Damien George <[email protected]>
1 parent ec65cac commit 6881618

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ports/zephyr/mpconfigport.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@
100100
#define MICROPY_PY_TIME_INCLUDEFILE "ports/zephyr/modtime.c"
101101
#define MICROPY_PY_ZEPHYR (1)
102102
#define MICROPY_PY_ZSENSOR (1)
103+
#define MICROPY_PY_SYS_MAXSIZE (1)
103104
#define MICROPY_PY_SYS_STDFILES (1)
104105
#define MICROPY_LONGINT_IMPL (MICROPY_LONGINT_IMPL_MPZ)
105106
#define MICROPY_FLOAT_IMPL (MICROPY_FLOAT_IMPL_FLOAT)
@@ -150,6 +151,8 @@ typedef long mp_off_t;
150151

151152
#define MP_STATE_PORT MP_STATE_VM
152153

154+
#define MP_SSIZE_MAX (0x7fffffff)
155+
153156
// extra built in names to add to the global namespace
154157
#define MICROPY_PORT_BUILTINS \
155158
{ MP_ROM_QSTR(MP_QSTR_open), MP_ROM_PTR(&mp_builtin_open_obj) },

0 commit comments

Comments
 (0)