Skip to content

fix: guard exceptions for AVR targets#100

Merged
thiagoralves merged 1 commit into
mainfrom
development
Apr 15, 2026
Merged

fix: guard exceptions for AVR targets#100
thiagoralves merged 1 commit into
mainfrom
development

Conversation

@thiagoralves
Copy link
Copy Markdown
Contributor

Guard and throw statements with #ifndef AVR in runtime headers.

AVR doesn't support <stdexcept>, <string>, or exceptions. Guard these
includes with #ifndef __AVR__ and replace throw statements with
infinite loops (halt) on AVR targets. Affects iec_array.hpp,
iec_located.hpp, and iec_pointer.hpp.

Non-AVR targets are unchanged -- full exception support preserved.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@thiagoralves thiagoralves merged commit dff86a7 into main Apr 15, 2026
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.

1 participant