diff options
| author | Damien George | 2017-09-18 23:53:33 +1000 |
|---|---|---|
| committer | Damien George | 2017-09-18 23:53:33 +1000 |
| commit | 44f0a4d1e7a315c8d2b21fc4b0471d88e382a91e (patch) | |
| tree | d8e340baba51b94109263f520636187a53a88347 | |
| parent | fdb2aa81b7c7588d94ec59932781e14759045df0 (diff) | |
py/mpconfig.h: Add note that using computed gotos in VM is not C99.
| -rw-r--r-- | py/mpconfig.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/py/mpconfig.h b/py/mpconfig.h index 63438a846..b93f851d6 100644 --- a/py/mpconfig.h +++ b/py/mpconfig.h @@ -383,6 +383,8 @@ // Whether to use computed gotos in the VM, or a switch // Computed gotos are roughly 10% faster, and increase VM code size by a little +// Note: enabling this will use the gcc-specific extensions of ranged designated +// initialisers and addresses of labels, which are not part of the C99 standard. #ifndef MICROPY_OPT_COMPUTED_GOTO #define MICROPY_OPT_COMPUTED_GOTO (0) #endif |
