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.
This commit is contained in:
Paul Sokolovsky 2015-11-21 16:34:57 +02:00
parent 72bd172b30
commit 295ea12411
3 changed files with 4 additions and 3 deletions

View File

@ -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);

View File

@ -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;

View File

@ -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)