Team612 / 612-2017

Chantilly Robotics Team 612 robot code repository for 2017 game FIRST Steamworks
GNU General Public License v3.0
4 stars 4 forks source link

Replace old-style include guards with #pragma once #14

Closed Ahmad-Bamba closed 7 years ago

Ahmad-Bamba commented 7 years ago

In every .h file in the repo right now, there is a set of two lines in the beginning and one at the end which look like this:

#ifndef [file]
#define [file]
...
#endif

These need to all be replaced with a single #pragma once at the top of the file.

Aaditya57 commented 7 years ago

So I delete the

ifndef [file]

define [file]

...

endif

and type a #pragma one on the top?

right?

Ahmad-Bamba commented 7 years ago

pragma once, right. But leave the part in in-between the the #define and #endif (obviously 😄 )

Aaditya57 commented 7 years ago

Ok thanks

Ahmad-Bamba commented 7 years ago

Thank you!