summaryrefslogtreecommitdiffstatshomepage
path: root/py/runtime.c
diff options
context:
space:
mode:
authorDamien <damien.p.george@gmail.com>2013-11-17 13:19:33 +0000
committerDamien <damien.p.george@gmail.com>2013-11-17 13:19:33 +0000
commitf03001f8a65dac02e6943986d8f6482fecf22545 (patch)
tree8ea2190f28b447bb9ea19ee0e00017f772cabf6d /py/runtime.c
parent0446a0d76d6949423a77286522c116d35a7c5f31 (diff)
downloadmicropython-f03001f8a65dac02e6943986d8f6482fecf22545.tar.gz
micropython-f03001f8a65dac02e6943986d8f6482fecf22545.zip
Add function to decode and show byte code.
Diffstat (limited to 'py/runtime.c')
-rw-r--r--py/runtime.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/py/runtime.c b/py/runtime.c
index 81881c4038..006a00d901 100644
--- a/py/runtime.c
+++ b/py/runtime.c
@@ -1027,7 +1027,8 @@ void rt_assign_byte_code(int unique_code_id, byte *code, uint len, int n_args, i
DEBUG_printf(" %02x", code[i]);
}
DEBUG_printf("\n");
- py_un_byte_code(code, len);
+ extern void py_show_byte_code(const byte *code, int len);
+ py_show_byte_code(code, len);
#ifdef WRITE_CODE
if (fp_write_code != NULL) {