8 ms·
Nice idea! I would appreciate a warning from the author specifying whether dbg evaluates its argument twice, as if so one must be careful with side effects when
by WhiteSage 7y ago
Nice idea! I would appreciate a warning from the author specifying whether dbg evaluates its argument twice, as if so one must be careful with side effects when using it.
- sharkdp 7y agoThank you for the feedback. No, it does not evaluate its argument twice - see this test: https://github.com/sharkdp/dbg-macro/blob/f30cdda9fc5332e06201d886c9e6ec4b8f0f1216/tests/tests.cpp#L166-L168 https://github.com/sharkdp/dbg-macro/blob/f30cdda9fc5332e062...
- WhiteSage 7y agoThanks for the reply. Amazing work :)