From 26a1b9ad9f347315bc14f2bf3ee064ede51794fc Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Sun, 30 Aug 2026 22:36:32 +0200 Subject: Fix record constructor for base records --- include/elna/boot/symbol.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'include') diff --git a/include/elna/boot/symbol.h b/include/elna/boot/symbol.h index 2c47fcc..40cbbc6 100644 --- a/include/elna/boot/symbol.h +++ b/include/elna/boot/symbol.h @@ -667,4 +667,14 @@ namespace elna::boot * \return The base type, or an empty type. */ type get_range_base_type(const type& range); + + /** + * Finds the type of a record field by name, following the base records. + * + * \param composite_type The record type to search in. + * \param field_name The name of the field to find. + * \return The field type, or an empty type if the type is not a record + * or has no field with this name. + */ + type lookup_field(const type& composite_type, const std::string& field_name); } -- cgit v1.2.3