Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion binary-versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"repository": "Autonomy-Logic/xml2st"
},
"strucpp": {
"version": "v0.5.7",
"version": "v0.5.8",
"repository": "Autonomy-Logic/STruCpp"
}
}
15 changes: 15 additions & 0 deletions resources/sources/arduino/arduino_runtime_glue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,21 @@
#include "generated.hpp"
#include "debug_dispatch.hpp"

// ---------------------------------------------------------------------------
// Runtime fault hook
// ---------------------------------------------------------------------------
// Weak default for strucpp::iec_runtime_fault (declared in iec_fault.hpp).
// On MCU firmware (compiled -fno-exceptions) the runtime calls this instead
// of throwing on an unrecoverable fault (null deref, array OOB, bad located
// address). Default behaviour: halt. A VPP HAL may provide a STRONG override
// to signal the fault its own way — blink a status LED, sound an alarm,
// reboot, etc. Kept free of <Arduino.h> so this TU stays macro-clean.
__attribute__((weak)) void strucpp::iec_runtime_fault(strucpp::IecFault /*reason*/,
const char* /*context*/) noexcept {
for (;;) {
}
}

// ---------------------------------------------------------------------------
// Storage
// ---------------------------------------------------------------------------
Expand Down
Loading