View Single Post
Posts: 190 | Thanked: 129 times | Joined on Mar 2010 @ Bavaria, Germany
#18
You can also use "#pragma once" instead of the ifndef guards. But this is not supported by every compiler.
So with ifndefs you are on the safe side, with pragma once you type less ... of course, you could also use both of them in one file.
 

The Following User Says Thank You to gri For This Useful Post: