mirror of
https://github.com/micropython/micropython.git
synced 2026-01-05 03:30:14 +01:00
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:
@@ -54,7 +54,7 @@ typedef struct _mp_parse_node_struct_t {
|
||||
|
||||
mp_parse_node_t mp_parse_node_new_leaf(machine_int_t kind, machine_int_t arg);
|
||||
|
||||
void mp_parse_node_show(mp_parse_node_t pn, int indent);
|
||||
void mp_parse_node_print(mp_parse_node_t pn, int indent);
|
||||
|
||||
typedef enum {
|
||||
MP_PARSE_SINGLE_INPUT,
|
||||
|
||||
Reference in New Issue
Block a user