diff options
| author | Yonatan Goldschmidt <yon.goldschmidt@gmail.com> | 2018-06-15 17:07:47 +0300 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2018-06-27 16:29:26 +1000 |
| commit | 473fe45da23f371d7beb6117c31922f9c9ee5942 (patch) | |
| tree | b4b57846eb6f56210d89034bb80779ba3a1d3b19 /py | |
| parent | 05e0103e9ebc5fde7f965d43ffd7dffe8e9e2048 (diff) | |
extmod/moducryptolib: Optionally export MODE_* constants to Python.
Allow including crypto consts based on compilation settings. Disabled by
default to reduce code size; if one wants extra code readability, can
enable them.
Diffstat (limited to 'py')
| -rw-r--r-- | py/mpconfig.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/py/mpconfig.h b/py/mpconfig.h index 2fe3bdb5a..8f202380d 100644 --- a/py/mpconfig.h +++ b/py/mpconfig.h @@ -1167,6 +1167,10 @@ typedef double mp_float_t; #define MICROPY_PY_UCRYPTOLIB (0) #endif +#ifndef MICROPY_PY_UCRYPTOLIB_CONSTS +#define MICROPY_PY_UCRYPTOLIB_CONSTS (0) +#endif + #ifndef MICROPY_PY_UBINASCII #define MICROPY_PY_UBINASCII (0) #endif |
