Add node_id() to C++ and D tree node handles

This commit is contained in:
josh committed 2026-09-02 21:00:47 -04:00
1 parent e5bb6db4a4
commit dc95fe041d
6 files changed
+34 -6

No files matched your search

+3
View File
@@ -13,6 +13,8 @@ int main()
assert(start.pItems1().valid());
assert(start.pItems().valid());
Items items = start.pItems();
assert_ne(0u, items.node_id());
assert_eq(start.pItems().node_id(), items.node_id());
assert(items.pItem().valid());
assert(items.pItem().pToken1().valid());
assert_eq(TOKEN_a, items.pItem().pToken1().token());
@@ -40,6 +42,7 @@ int main()
assert_eq(P_SUCCESS, p_parse(context));
start = p_result(context);
assert(!start.pItems().valid());
assert_eq(0u, start.pItems().node_id());
p_context_delete(context);