0

I was just wondering, I normally don't use underscores in files. I know that for "camelback" files (exampleHeader.h) you do EXAMPLEHEADER_H.

Is it the same for file names with words separated by underscores? So example_header.h would still be EXAMPLEHEADER_H?

user3062299
  • 55
  • 2
  • 5
  • 10
  • 3
    The name of the include guard and the filename don't need to be related at all. – Joe Mar 21 '14 at 22:04
  • Awesome, thanks. Was totally unsure because I was always taught that they should be the same and the underscore is what threw me off. – user3062299 Mar 21 '14 at 22:06
  • 1
    There may be conventions (e.g., http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml#The__define_Guard ), but include guards are entirely up to you. – Max Lybbert Mar 21 '14 at 22:07
  • Okay, thanks. Like I said before, wasn't exactly sure. – user3062299 Mar 21 '14 at 22:23

0 Answers0