py/mpconfig.h: Add note that using computed gotos in VM is not C99.
This commit is contained in:
parent
fdb2aa81b7
commit
44f0a4d1e7
|
@ -383,6 +383,8 @@
|
||||||
|
|
||||||
// Whether to use computed gotos in the VM, or a switch
|
// 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
|
// 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
|
#ifndef MICROPY_OPT_COMPUTED_GOTO
|
||||||
#define MICROPY_OPT_COMPUTED_GOTO (0)
|
#define MICROPY_OPT_COMPUTED_GOTO (0)
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue