py/emitglue: Host definition of mp_verbose_flag.

This may not seem like the ideal place, but is actually the only place
in py/ where it gets referenced, so is just right.
pull/1635/merge
Paul Sokolovsky 2015-11-21 16:34:57 +02:00
rodzic 72bd172b30
commit 295ea12411
3 zmienionych plików z 4 dodań i 3 usunięć

Wyświetl plik

@ -48,8 +48,6 @@ int vprintf(const char *fmt, va_list ap) {
}
#if MICROPY_DEBUG_PRINTERS
mp_uint_t mp_verbose_flag = 1;
int DEBUG_printf(const char *fmt, ...) {
va_list ap;
va_start(ap, fmt);

Wyświetl plik

@ -45,6 +45,10 @@
#define DEBUG_OP_printf(...) (void)0
#endif
#if MICROPY_DEBUG_PRINTERS
mp_uint_t mp_verbose_flag = 0;
#endif
struct _mp_raw_code_t {
mp_raw_code_kind_t kind : 3;
mp_uint_t scope_flags : 7;

Wyświetl plik

@ -51,7 +51,6 @@
// Command line options, with their defaults
STATIC bool compile_only = false;
STATIC uint emit_opt = MP_EMIT_OPT_NONE;
mp_uint_t mp_verbose_flag = 0;
#if MICROPY_ENABLE_GC
// Heap size of GC heap (if enabled)