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

Add pre-processor macro that allows debug output within loops #40

Open
KedoKudo opened this issue Sep 20, 2023 · 0 comments
Open

Add pre-processor macro that allows debug output within loops #40

KedoKudo opened this issue Sep 20, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@KedoKudo
Copy link
Contributor

Is your feature request related to a problem? Please describe.

Adding debug print inside a loop can leads to severe performance degradation.
We should define a macro that allow compiler pre-processor to remove them for release build, and enable them for debug build.

Describe the solution you'd like

Implement the method described here: https://stackoverflow.com/questions/29260027/ifdef-debug-in-main-function

Describe alternatives you've considered

N/A

Additional context

N/A

@KedoKudo KedoKudo added the enhancement New feature or request label Sep 20, 2023
@KedoKudo KedoKudo self-assigned this Sep 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant