8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent accadf9 commit a1069ebCopy full SHA for a1069eb
py/circuitpy_mpconfig.h
@@ -176,6 +176,10 @@ extern void common_hal_mcu_enable_interrupts(void);
176
#define INT_FMT "%d"
177
typedef int mp_int_t; // must be pointer size
178
typedef unsigned mp_uint_t; // must be pointer size
179
+#if __GNUC__ >= 10 // on recent gcc versions we can check that this is so
180
+_Static_assert(sizeof(mp_int_t) == sizeof(void *));
181
+_Static_assert(sizeof(mp_uint_t) == sizeof(void *));
182
+#endif
183
typedef long mp_off_t;
184
185
#define MP_PLAT_PRINT_STRN(str, len) mp_hal_stdout_tx_strn_cooked(str, len)
0 commit comments