Skip to content

Add free functions to initialize and finalize krepe - #65

Merged
tretre91 merged 3 commits into
mainfrom
initialize_finalize
Oct 20, 2026
Merged

tretre91 merged 3 commits into
mainfrom
initialize_finalize

Conversation

@tretre91

Copy link
Copy Markdown
Member

This PR adds krepe::initialize(argc, argv) and krepe::finalize() as an alternative to the ScopeGuard to initialize krepe. I also removed the input reset argument of ScopeGuard to instead use command line flag (--kernel-replayer-enable-input-reset) and made reset_inputs a free function.
Lastly, the test CMakeLists and the launcher have been updated to be able to passe flags to the replayer

- add krepe::initialize and krepe::finalize
- enable input reset through a cli flag instead of an argument in the
  ScopeGuard constructor
- make reset_inputs a free function
- update the test script tand CMakeLists to allow specifying replayer
  flags
@daxmawal daxmawal self-assigned this Oct 16, 2026

@daxmawal daxmawal left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's true that it's better to use krepe::reset_inputs() this way, thanks.

Comment thread src/krepe/replay/kernel_replayer.cpp Outdated
Comment thread tests/index_type/CMakeLists.txt
Co-authored-by: Jean-François David <jeanfrancoismanutea@gmail.com>
@tretre91
tretre91 merged commit b0e99f9 into main Oct 20, 2026
17 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