Skip to content

cmDebugTools: add header

Ben Boeckel requested to merge ben.boeckel/cmake:cmext-debug-header into master

This provides a utility macro which prints out:

  • location of the call;
  • the expression being evaluated; and
  • the value of the expression.

Evaluates to the value of the expression.

Inspired by Rust's dbg! macro.

See: https://doc.rust-lang.org/stable/std/macro.dbg.html


Topic-rename: cmDebugTools-add-header

Edited by Ben Boeckel

Merge request reports