Click here to Skip to main content
15,922,166 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Can anyone suggest a program to add redundant include guards to a large open source project with excessive compilation time? I would like to be able to automatically add the redundant include guards after each release.
Posted

1 solution

Easy enough by adding #pragma once to the top of the files.

Other than that, you'll have to write or find a plug-in for VS that will add the guard code automatically. I don't know of any myself.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900