summaryrefslogtreecommitdiffstatshomepage
path: root/py/compile.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-01-18 23:24:36 +0000
committerDamien George <damien.p.george@gmail.com>2014-01-18 23:24:36 +0000
commit08335004cfe95048ee06134a3e49b9fb75639139 (patch)
tree7518a854012938fd70c57b3571a630a142b84f28 /py/compile.h
parentaefe79880f8c5f66132673ccc9be27d2ca29005b (diff)
downloadmicropython-08335004cfe95048ee06134a3e49b9fb75639139.tar.gz
micropython-08335004cfe95048ee06134a3e49b9fb75639139.zip
Add source file name and line number to error messages.
Byte code has a map from byte-code offset to source-code line number, used to give better error messages.
Diffstat (limited to 'py/compile.h')
-rw-r--r--py/compile.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/compile.h b/py/compile.h
index 770c2524da..552d36fa5a 100644
--- a/py/compile.h
+++ b/py/compile.h
@@ -1 +1 @@
-mp_obj_t mp_compile(mp_parse_node_t pn, bool is_repl);
+mp_obj_t mp_compile(mp_parse_node_t pn, qstr source_file, bool is_repl);