avoid direct usage of std::cout#499
Conversation
danmar
left a comment
There was a problem hiding this comment.
hmm these functions are for usage in the debugger. will I be able to call these during debugging? I guess std::cout symbol is not available while I debug inside the simplecpp.
We don't need to have these functions in release builds? would that solve your itch?
Sorry, something went wrong.
|
Not directly specifying any stream is good style as you do not want some "random" print something. It would also allow to use it in more contexts. Not sure about calling it directly from the debugger since I rarely do that. I thought about adding a default parameter but I did not want to have the |
Sorry, something went wrong.
jcfr
left a comment
There was a problem hiding this comment.
Integrating the proposed API while maintaining the possibility to just call the function seems like a reasonable trade-off to finalize this.
Sorry, something went wrong.
Like I said that would introduce the Also we could use default parameters which would require less code. |
Sorry, something went wrong.
No description provided.