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

Proper Exit Codes #195

Closed
Tracked by #341
FG-TUM opened this issue May 28, 2021 · 0 comments · Fixed by #341
Closed
Tracked by #341

Proper Exit Codes #195

FG-TUM opened this issue May 28, 2021 · 0 comments · Fixed by #341

Comments

@FG-TUM
Copy link
Member

FG-TUM commented May 28, 2021

Is your feature request related to a problem? Please describe.
Currently when we call Simulation::exit() We either pass -1, 1, or an arbitrary number. The latter is nice to directly grep from the crashing simulation into the code but might become unmaintainable in the long run.

Describe the solution you'd like
One header defining (enum?) constants for each exit state which are then used as an argument for Simulation::exit().

Describe alternatives you've considered

Additional context

$ grep -Erni 'Simulation::exit' src | wc -l
260
@FG-TUM FG-TUM mentioned this issue May 28, 2021
@HomesGH HomesGH mentioned this issue Sep 22, 2024
1 task
@HomesGH HomesGH linked a pull request Sep 22, 2024 that will close this issue
1 task
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 a pull request may close this issue.

1 participant