mirror of
https://github.com/micropython/micropython.git
synced 2026-01-07 04:30:24 +01:00
py/showbc: Make sure to set the const_table before printing bytecode.
This commit is contained in:
3
py/vm.c
3
py/vm.c
@@ -38,8 +38,7 @@
|
||||
#include "py/bc.h"
|
||||
|
||||
#if 0
|
||||
//#define TRACE(ip) printf("sp=" INT_FMT " ", sp - code_state->sp); mp_bytecode_print2(ip, 1);
|
||||
#define TRACE(ip) printf("sp=%d ", sp - code_state->sp); mp_bytecode_print2(ip, 1);
|
||||
#define TRACE(ip) printf("sp=%d ", (int)(sp - code_state->sp)); mp_bytecode_print2(ip, 1, code_state->const_table);
|
||||
#else
|
||||
#define TRACE(ip)
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user