py: Add module/function/class name to exceptions.

Exceptions know source file, line and block name.

Also tidy up some debug printing functions and provide a global
flag to enable/disable them.
This commit is contained in:
Damien George
2014-01-19 11:48:48 +00:00
parent e02b2d4391
commit cbd2f7482c
17 changed files with 83 additions and 83 deletions

View File

@@ -44,7 +44,7 @@ void do_file(const char *file) {
if (pn != MP_PARSE_NODE_NULL) {
//printf("----------------\n");
//parse_node_show(pn, 0);
//mp_parse_node_print(pn, 0);
//printf("----------------\n");
// compile