diff options
| author | Damien George | 2015-09-15 14:56:13 +0100 |
|---|---|---|
| committer | Damien George | 2015-10-12 13:46:01 +0100 |
| commit | 3c9c3687d6c1001b88ef6dde200566456a1f2641 (patch) | |
| tree | 23674a035d588eb89c8f8d2d0fb50ed58194bd8a /py/mpconfig.h | |
| parent | 408b74d74ce8de806f8718a02d350b8326d89361 (diff) | |
py: Add support to call __init__ from a builtin module on first import.
Diffstat (limited to 'py/mpconfig.h')
| -rw-r--r-- | py/mpconfig.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/py/mpconfig.h b/py/mpconfig.h index 500af5e76..ad2fe3ee5 100644 --- a/py/mpconfig.h +++ b/py/mpconfig.h @@ -406,6 +406,11 @@ typedef double mp_float_t; #define MICROPY_STREAMS_NON_BLOCK (0) #endif +// Whether to call __init__ when importing builtin modules for the first time +#ifndef MICROPY_MODULE_BUILTIN_INIT +#define MICROPY_MODULE_BUILTIN_INIT (0) +#endif + // Whether module weak links are supported #ifndef MICROPY_MODULE_WEAK_LINKS #define MICROPY_MODULE_WEAK_LINKS (0) |
