yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #11117
Coding style for Yade [Was Re: [Branch ~yade-pkg/yade/git-trunk] Rev 4087: Fix compilation. (for latter reference regarding coding style)]
2014-07-22 16:12 GMT+02:00 Bruno Chareyre <bruno.chareyre@xxxxxxxxxxx>:
> http://codeketchup.blogspot.de/2013/05/simple-and-basic-c-coding-conventions.html
>
> Perfect. We can point to this.
> Only the formatting section, though, because elsewhere it also says "Do not
> use #pragma once."... ;)
Yes, sure "pragma once" works just fine with almost all modern compilers
except of some exotic ones.
We should also try not to create lines longer than 100-120 symbols,
better even 80. Alexander pointed, that in one file it is even longer
than 1300 symbols (Ip2 description). We should really cut those lines
in a smaller one.
Anton
Follow ups