Why do we #define OUT?

What is the purpose of #defining OUT and marking the parameters with it?

Simply to reinforce that it’s an out parameter. It has no effect on the code, so if you understand them and you’d rather not use the macro, that’s up to you.

So, it basically serves the same purpose as a comment?

Essentially, yeah.

Being a c++ programmer for a few years now, this is actually cringing me out. Why force C# conventions into C++ code?

3 Likes

Privacy & Terms