We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It seems TRACE_EVENT expands to 3 statements. That might not work with
TRACE_EVENT
if (some_condition) TRACE_EVENT(...);
without braces.
The text was updated successfully, but these errors were encountered:
You can fix that with a do { /* ...what was in TRACE_EVENT before... */ } while (false) statement.
do { /* ...what was in TRACE_EVENT before... */ } while (false)
Sorry, something went wrong.
That will fail
{ TRACE_EVENT(...); function_that_is_slow_and_is_to_be_traced(); }
Oh you are right, there really is no way around it.
No branches or pull requests
It seems
TRACE_EVENT
expands to 3 statements. That might not work withwithout braces.
The text was updated successfully, but these errors were encountered: