Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Fix FlashString library problem defining arrays in class declarations #2776

Merged
merged 1 commit into from
May 27, 2024

Conversation

mikee47
Copy link
Contributor

@mikee47 mikee47 commented May 26, 2024

For example, this code produces __fstr__myIntArray not defined error:

struct MyClass {
    DEFINE_FSTR_ARRAY_LOCAL(myIntArray, int, 1, 2, 3, 4, 5)
};

The same issue applies to maps and vectors.

Also:

  • Fix static_assert failure using int64_t for map keys
  • Add integration tests to verify before/after behaviour.
  • Update documentation

@mikee47 mikee47 changed the title Fix problem defining arrays in class declarations Fix FlashString library problem defining arrays in class declarations May 26, 2024
@SmingHub SmingHub deleted a comment from what-the-diff bot May 26, 2024
- Fix `static_assert` failure using `int64_t` for map keys
- Add integration tests to verify before/after behaviour.
- Update documentation

For example, this code produces `__fstr__myIntArray not defined` error:

```
struct MyClass {
    DEFINE_FSTR_ARRAY_LOCAL(myIntArray, int, 1, 2, 3, 4, 5)
};
```

The same issue applies to maps and vectors.
@mikee47 mikee47 force-pushed the fix/flashstring-in-class branch from ff803a5 to 63bbaf3 Compare May 26, 2024 16:05
@slaff slaff added this to the 5.2.0 milestone May 27, 2024
@slaff slaff merged commit ef3cc6b into SmingHub:develop May 27, 2024
46 checks passed
@mikee47 mikee47 deleted the fix/flashstring-in-class branch May 27, 2024 07:13
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.

2 participants