summaryrefslogtreecommitdiff
path: root/src/gtkext/graph/node.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gtkext/graph/node.h')
-rw-r--r--src/gtkext/graph/node.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/gtkext/graph/node.h b/src/gtkext/graph/node.h
index ab7d0da..502b366 100644
--- a/src/gtkext/graph/node.h
+++ b/src/gtkext/graph/node.h
@@ -146,7 +146,14 @@ GtkBufferView *find_graph_view_by_start_address(GtkBufferView **, size_t, const
GGraphNode *convert_blocks_into_nodes(GInstrBlock *, GtkBufferView **, size_t);
/* Recherche le noeud contenant une instruction donnée. */
-GGraphNode *find_node_for_instruction(GGraphNode *, GArchInstruction *);
+GGraphNode *_find_node_for_instruction(GGraphNode *, GArchInstruction *, bool);
+
+
+#define find_node_for_first_instruction(nds, ins) \
+ _find_node_for_instruction(nds, ins, true)
+
+#define find_node_for_last_instruction(nds, ins) \
+ _find_node_for_instruction(nds, ins, false)