Closed GoogleCodeExporter closed 8 years ago
Aww sorry, I forgot to specify my environment:
I'm using Ekopath compiler on Linux.
Original comment by mich...@gmx.tm
on 27 Nov 2011 at 2:20
Well, they are very useful to me for navigation. You can always ignore them
using -Wno-pragmas (or similar). The entire point of pragmas is to provide for
optional behavior like this. Given that Chipmunk isn't written in vanilla ISO C
you can't compile it in any compiler without flags and get no warnings or
errors of some kind.
Original comment by slemb...@gmail.com
on 27 Nov 2011 at 6:12
You are in luck. I found that I can also use //MARK: comments to do the same
thing without needing the pragmas. That should make both of us happy.
I made the change in the github repository. (Chipmunk moved some months ago)
https://github.com/slembcke/Chipmunk-Physics
Original comment by slemb...@gmail.com
on 2 Dec 2011 at 8:53
Ah good to know and thanks for remembering about it. Though it is your code, so
keeping it readable is for your own good. If you decide to change editor or
someone else on another editor tries to read your code you will have useless
pragmas scattered everywhere and maybe warnings. I know pragmas are compiler
specific, that's why I usually enclose them in ifdefs and try to keep them to
a minimum. IMO, sticking to standardized things is always a winning bet.
Original comment by mich...@gmx.tm
on 4 Dec 2011 at 11:47
Original issue reported on code.google.com by
mich...@gmx.tm
on 27 Nov 2011 at 2:18