Skip to content

Commit 44e8951

Browse files
WhatAmISupposedToPutHerejannau
authored andcommitted
Revert "adt: drop unused C macros"
This reverts commit f41676c. Signed-off-by: Sasha Finkelstein <[email protected]>
1 parent 80df459 commit 44e8951

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/adt.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ struct adt_node_hdr {
1818
u32 child_count;
1919
};
2020

21+
#define ADT_PROP(adt, offset) ((const struct adt_property *)(((u8 *)(adt)) + (offset)))
22+
2123
/* This API is designed to match libfdt's read-only API */
2224

2325
/* Required for Rust until we move xnuboot across */

0 commit comments

Comments
 (0)