Added inline function for reference validity
This commit is contained in:
1 parent
ebbf17cb42
commit
e3940cc986
1 file changed
+6
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user