Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
WhiteSage
on Sept 21, 2019
|
parent
|
context
|
favorite
| on:
Show HN: A dbg(...) macro for C++
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
on Sept 21, 2019
[–]
Thank you for the feedback. No, it does not evaluate its argument twice - see this test:
https://github.com/sharkdp/dbg-macro/blob/f30cdda9fc5332e062...
WhiteSage
on Sept 22, 2019
|
parent
[–]
Thanks for the reply. Amazing work :)
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: