Some enhancement proposals for CMake based usecases
winwinashwin opened this issue · 1 comments
winwinashwin commented
- Currently we only support making
dbg(...)
no-op withDBG_MACRO_DISABLE
. When using with CMake it is more intuitive to make it no-op when CMake is invoked in Release mode. - Following the instructions from README, the dbg statements looks like this
[..m/mines/src/grid.cpp:103 (reset)] _state = 0 (Grid::State)
The source file path could be cleaned up.
sharkdp commented
Currently we only support making
dbg(...)
no-op withDBG_MACRO_DISABLE
. When using with CMake it is more intuitive to make it no-op when CMake is invoked in Release mode.
Having the macro active in release mode is a deliberate design choice. See https://doc.rust-lang.org/std/macro.dbg.html for reasoning.
The source file path could be cleaned up.
If you have any ideas on how, please let us know. I wanted to shorten it to make the main content readable.
I'm closing this for now, but let me know if there is anything you think we should do.