I have seen many comments inside .c/.h codes while for search of my unsolved answers, and I have noticed that so fare all use this character // comments// for engine compiler to ignore it.
I understand if your using it for 2-3 lines of comments, but when it come to comments that take 10-15 lines of codes using this // for every line I find it to be a lot of unnecessary work.

So here is a little trick I came across that I'm sure most of you knew about it just in case someone didn't, it might make their explanatory comments(witch I appreciate so much) easier to work with:

use this before the comment /* then close it again before the last comment */. Don't leave any working code in between these characters /* function main()*/ your engine will ignore it.

small example:

Code:
/* start of my comment
next line of my comment
another line of comment
and yet another line of comment
etc ......
*/ end of my comment

function main() // using it for one line of comments



Do make shore to close it after you open it, otherwise it will ignore entire code in your file.

I don't know maybe it looks cool or something just using these characters // for each line of comments. I'm all about simple and fast, I hope this helped someone out.

Last edited by Siwler; 01/18/12 22:59.

Honesty will get you far, were dishonesty will get you only so far in life.