Skip to content

Comments

fix: add include guard, default_maxtime, tryparam, and initval bounds…#438

Merged
pradeeban merged 1 commit intoControlCore-Project:devfrom
avinxshKD:fix/hpp-missing-functions
Feb 20, 2026
Merged

fix: add include guard, default_maxtime, tryparam, and initval bounds…#438
pradeeban merged 1 commit intoControlCore-Project:devfrom
avinxshKD:fix/hpp-missing-functions

Conversation

@avinxshKD
Copy link

Fixes #422

concoredocker.hpp had default_maxtime, load_params, tryparam, a #ifndef guard, and a bounds check in initval, concore.hpp had none of them. Ported them over and added the if (val.empty()) return val; guard so initval doesn't segfault on empty input.

Changes:

  • #ifndef CONCORE_HPP guard added

  • maxtime field + default_maxtime() reads ./in/1/concore.maxtime

  • params field + load_params() + tryparam() so params aren't silently dropped

  • initval() no longer crashes on empty input

@avinxshKD
Copy link
Author

Hey @pradeeban just a quick check, this fixes the #422 parity/safety issues, but I still don’t see C++ enforcing termination unless nodes explicitly use while (concore.simtime < concore.maxtime). If that’s intentional, all good. If not, I can send a tiny follow-up PR for that only.

@pradeeban
Copy link
Member

@avinxshKD you can send a follow-up PR.

@pradeeban pradeeban merged commit 5fc196d into ControlCore-Project:dev Feb 20, 2026
6 checks passed
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