Skip to content

Generate loop for toString() on Struct member arrays#690

Merged
bocchino merged 3 commits intomainfrom
struct-member-array-loop-codegen
May 8, 2025
Merged

Generate loop for toString() on Struct member arrays#690
bocchino merged 3 commits intomainfrom
struct-member-array-loop-codegen

Conversation

@Kronos3
Copy link
Collaborator

@Kronos3 Kronos3 commented May 7, 2025

This cleans up toString() for struct member arrays by concatenating a string to format the array. I ran FppTest in addition to our normal testing to validate the toString() formatting still matches.

Closes #689

@Kronos3 Kronos3 requested a review from bocchino May 7, 2025 01:10
Copy link
Collaborator

@bocchino bocchino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Just a couple of comments.

@Kronos3 Kronos3 force-pushed the struct-member-array-loop-codegen branch from af649bb to baff224 Compare May 8, 2025 14:30
Copy link
Collaborator

@bocchino bocchino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@bocchino
Copy link
Collaborator

bocchino commented May 8, 2025

I confirmed that the check-cpp and FppTest tests pass.

@bocchino bocchino merged commit acebde9 into main May 8, 2025
11 checks passed
@bocchino bocchino deleted the struct-member-array-loop-codegen branch May 8, 2025 18:52
LeStarch added a commit to LeStarch/fpp that referenced this pull request May 8, 2025
bocchino added a commit that referenced this pull request May 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Omit toString() on array larger than max length

2 participants