diff options
| author | Dan Halbert <halbert@halwitz.org> | 2018-04-02 19:19:43 -0400 |
|---|---|---|
| committer | Dan Halbert <halbert@halwitz.org> | 2018-04-02 19:19:43 -0400 |
| commit | 435e894fa0ec5e9ce82b7bdef308413c6731e06a (patch) | |
| tree | af8d62363157a6ba969684538e012871a88224c6 /shared-module/struct/__init__.c | |
| parent | d005b123267ab4ac2f0471c730b762cc3e94232c (diff) | |
| parent | 98c7d70fe406d66d80c3c9cc888602f96cf444c4 (diff) | |
Merge branch 'master' into 3.0_hid
Diffstat (limited to 'shared-module/struct/__init__.c')
| -rw-r--r-- | shared-module/struct/__init__.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/shared-module/struct/__init__.c b/shared-module/struct/__init__.c index e944f7738..eac41c9c3 100644 --- a/shared-module/struct/__init__.c +++ b/shared-module/struct/__init__.c @@ -33,9 +33,11 @@ #include "py/parsenum.h" void struct_validate_format(char fmt) { +#if MICROPY_NONSTANDARD_TYPECODES if( fmt == 'S' || fmt == 'O') { mp_raise_RuntimeError("'S' and 'O' are not supported format types"); } +#endif } char get_fmt_type(const char **fmt) { |
