Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Make reactor names available at runtime #507

Merged
merged 5 commits into from
Dec 30, 2024
Merged

Make reactor names available at runtime #507

merged 5 commits into from
Dec 30, 2024

Conversation

edwardalee
Copy link
Contributor

@edwardalee edwardalee commented Dec 28, 2024

This PR adds two functions (and macros), lf_reactor_name and lf_reactor_full_name, each of which takes a self struct as an argument. The name is the instance name given by the new statement. If the reactor is in a bank, then the name will have a suffix of the form [bank_index]. The full name is the name of the reactor and all its parents separated by periods. There is a companion PR in lingua-franca.

@edwardalee edwardalee added the enhancement Enhancement of existing feature label Dec 28, 2024
@edwardalee edwardalee marked this pull request as ready for review December 29, 2024 01:25
@edwardalee edwardalee merged commit c2437e1 into main Dec 30, 2024
48 of 50 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement Enhancement of existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant