Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • D dynamorio
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,467
    • Issues 1,467
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 44
    • Merge requests 44
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • DynamoRIO
  • dynamorio
  • Merge requests
  • !5914

Updates debug printing macro to include if().

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Administrator requested to merge iX-reuse_distance-debugmacro into master Mar 15, 2023
  • Overview 6
  • Commits 3
  • Pipelines 0
  • Changes 2

Created by: brettcoon

The old DEBUG_VERSOSE(level) macro returns a condition that can be evaluated at runtime for debug actions. When not in DEBUG mode, the condition always evaluates to false, resulting in unreachable code the compiler will hopefully eliminate, but may cause a warning.

The new IF_DEBUG_VERBOSE(level, action) macro includes the condition evaluation to perform when the condition is met in DEBUG mode. When not in DEBUG mode, all code including the condition is eliminated, leaving nothing to the compiler.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: iX-reuse_distance-debugmacro