diff options
Diffstat (limited to 'boot/visit/tree.c')
| -rw-r--r-- | boot/visit/tree.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/boot/visit/tree.c b/boot/visit/tree.c index 001cd36..48db391 100644 --- a/boot/visit/tree.c +++ b/boot/visit/tree.c @@ -69,17 +69,6 @@ struct Tree_Visit_Table void (*visit_pragma_node)(struct Tree_Visit* visitor, struct Tree_Pragma* node); }; -#define VISIT(visit_function, node) visit->table->visit_function(visit, node); - -#define VISIT_MAYBE(visit_function, node) \ - if (node) visit->table->visit_function(visit, node) - -#define DATA_FOR_VISIT(type, name) \ - type* name = (type*)visit->user_data; \ - if (!name) { failure("visit user data is NULL for " #name); } - -// tree_walk functions are the default traversal mechanism - // define a tree_walk function which goes nowhere. #define TREE_WALK_LEAF_FUNCTION(name, type) \ void name(struct Tree_Visit* visit, type node) {} |
