Browse Source

Added inline function for reference validity

master
Patrick Jakobsen 7 months ago
parent
commit
e3940cc986
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      rdic.h

+ 6
- 0
rdic.h View File

@ -47,6 +47,12 @@ static inline int rdic_node_references_equal(
return (n.node == m.node) && (n.generation == m.generation);
}
static inline int rdic_node_reference_valid(
RDIC_Node_Reference n)
{
return (n.node != NULL) && (n.generation == n.node->generation);
}
enum {
RDIC_GET_NODE__NODES_COLLECTED = 1 << 0,
RDIC_GET_NODE__NODE_ALLOCATED = 1 << 1,

Loading…
Cancel
Save