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 (experimental) conditional print based on lambda #164

Closed
terrillmoore opened this issue Apr 21, 2019 · 0 comments
Closed

Add (experimental) conditional print based on lambda #164

terrillmoore opened this issue Apr 21, 2019 · 0 comments
Assignees

Comments

@terrillmoore
Copy link
Member

gLog.printf(flags, "format", ...) always evaluates its arguments, even if the print is skipped.

Add gLog.cond(flags, [&]{){ .... }), which calls the ... code only if enabled by the flag values and the log settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant