TheDan64 / inkwell

It's a New Kind of Wrapper for Exposing LLVM (Safely)
https://thedan64.github.io/inkwell/
Apache License 2.0
2.38k stars 229 forks source link

Added get_field_at_index and count_fields to struct values #451

Closed tfzee closed 1 year ago

tfzee commented 1 year ago

Added get_field_at_index and count_fields to StructValue.

Description

This mirrors the functions from StructType and allows accessing members of const structures directly.

Related Issue

https://github.com/TheDan64/inkwell/issues/450

How This Has Been Tested

Added a few simple assertions to the tests. test_values.rs

Checklist

TheDan64 commented 1 year ago

Thanks!