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 macro to notify user if debug mode is on? #10

Open
emilydolson opened this issue Jun 18, 2019 · 0 comments
Open

Add macro to notify user if debug mode is on? #10

emilydolson opened this issue Jun 18, 2019 · 0 comments

Comments

@emilydolson
Copy link

I'm not sure what balance between keeping the default files simple and adding useful features you want to strike, but it just occurred to me that you could make it clear when debug mode is on by add the following to main():

#ifndef NDEBUG
std::cout << "Running in debug mode << std::endl;
#endif

This idea brought to you be the fact that I just spent 20 minutes timing a run of a program and then realized I wasn't sure whether I compiled with debug mode on or off 😄

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

No branches or pull requests

1 participant