Make header guards more unique and consistent

experiment/meta_header
Martchus 7 years ago
parent 1deb244fee
commit db7b02b1db
  1. 6
      application/argumentparser.h
  2. 6
      application/failure.h
  3. 6
      application/global.h
  4. 6
      chrono/datetime.h
  5. 6
      chrono/period.h
  6. 6
      chrono/timespan.h
  7. 6
      conversion/binaryconversion.h
  8. 6
      conversion/conversionexception.h
  9. 6
      conversion/stringconversion.h
  10. 6
      conversion/types.h
  11. 6
      conversion/widen.h
  12. 6
      io/ansiescapecodes.h
  13. 6
      io/binaryreader.h
  14. 6
      io/binarywriter.h
  15. 6
      io/path.h

@ -1,5 +1,5 @@
#ifndef ARGUMENTPARSER_H
#define ARGUMENTPARSER_H
#ifndef APPLICATION_UTILITIES_ARGUMENTPARSER_H
#define APPLICATION_UTILITIES_ARGUMENTPARSER_H
#include "./global.h"
@ -662,4 +662,4 @@ public:
}
#endif // ARGUMENTPARSER_H
#endif // APPLICATION_UTILITIES_ARGUMENTPARSER_H

@ -1,5 +1,5 @@
#ifndef FAILURE_H
#define FAILURE_H
#ifndef APPLICATION_UTILITIES_FAILURE_H
#define APPLICATION_UTILITIES_FAILURE_H
#include "./global.h"
@ -23,4 +23,4 @@ private:
}
#endif // FAILURE_H
#endif // APPLICATION_UTILITIES_FAILURE_H

@ -1,5 +1,5 @@
#ifndef MARTCHUSUTILITY_LIBRARY_GLOBAL_H
#define MARTCHUSUTILITY_LIBRARY_GLOBAL_H
#ifndef APPLICATION_UTILITIES_GLOBAL_H
#define APPLICATION_UTILITIES_GLOBAL_H
#ifdef _WIN32
# ifndef PLATFORM_WINDOWS
@ -86,4 +86,4 @@
# define IF_DEBUG_BUILD(x)
#endif
#endif // MARTCHUSUTILITY_LIBRARY_GLOBAL_H
#endif // APPLICATION_UTILITIES_GLOBAL_H

@ -1,5 +1,5 @@
#ifndef DATETIME_H
#define DATETIME_H
#ifndef CHRONO_UTILITIES_DATETIME_H
#define CHRONO_UTILITIES_DATETIME_H
#include "./timespan.h"
@ -436,4 +436,4 @@ inline DateTime &DateTime::operator -=(const TimeSpan &timeSpan)
}
#endif // DATETIME_H
#endif // CHRONO_UTILITIES_DATETIME_H

@ -1,5 +1,5 @@
#ifndef PERIOD_H
#define PERIOD_H
#ifndef CHRONO_UTILITIES_PERIOD_H
#define CHRONO_UTILITIES_PERIOD_H
#include "./datetime.h"
@ -46,4 +46,4 @@ inline int Period::days() const
}
#endif // PERIOD_H
#endif // CHRONO_UTILITIES_PERIOD_H

@ -1,5 +1,5 @@
#ifndef TIMESPAN_H
#define TIMESPAN_H
#ifndef CHRONO_UTILITIES_TIMESPAN_H
#define CHRONO_UTILITIES_TIMESPAN_H
#include "../application/global.h"
#include "../conversion/types.h"
@ -354,4 +354,4 @@ constexpr inline bool TimeSpan::isInfinity() const
}
#endif // TIMESPAN_H
#endif // CHRONO_UTILITIES_TIMESPAN_H

@ -1,5 +1,5 @@
#ifndef CONVERSION_UTILITIES_CONVERT_H
#define CONVERSION_UTILITIES_CONVERT_H
#ifndef CONVERSION_UTILITIES_BINARY_CONVERSION_H
#define CONVERSION_UTILITIES_BINARY_CONVERSION_H
#include "./types.h"
@ -197,4 +197,4 @@ LIB_EXPORT constexpr uint64 swapOrder(uint64 value)
}
#endif // CONVERSION_UTILITIES_CONVERT_H
#endif // CONVERSION_UTILITIES_BINARY_CONVERSION_H

@ -1,5 +1,5 @@
#ifndef CONVERSIONEXCEPTION_H
#define CONVERSIONEXCEPTION_H
#ifndef CONVERSION_UTILITIES_CONVERSIONEXCEPTION_H
#define CONVERSION_UTILITIES_CONVERSIONEXCEPTION_H
#include "../application/global.h"
@ -18,4 +18,4 @@ public:
}
#endif // CONVERSIONEXCEPTION_H
#endif // CONVERSION_UTILITIES_CONVERSIONEXCEPTION_H

@ -1,5 +1,5 @@
#ifndef STRINGCONVERSION_H
#define STRINGCONVERSION_H
#ifndef CONVERSION_UTILITIES_STRINGCONVERSION_H
#define CONVERSION_UTILITIES_STRINGCONVERSION_H
#include "./conversionexception.h"
#include "./binaryconversion.h"
@ -201,4 +201,4 @@ LIB_EXPORT std::pair<std::unique_ptr<byte[]>, uint32> decodeBase64(const char *e
}
#endif // STRINGCONVERSION_H
#endif // CONVERSION_UTILITIES_STRINGCONVERSION_H

@ -1,5 +1,5 @@
#ifndef TYPES_H
#define TYPES_H
#ifndef CONVERSION_UTILITIES_TYPES_H
#define CONVERSION_UTILITIES_TYPES_H
#include <cstdint>
@ -71,4 +71,4 @@ typedef double float64;
#error "Unable to define float64!"
#endif
#endif // TYPES_H
#endif // CONVERSION_UTILITIES_TYPES_H

@ -1,5 +1,5 @@
#ifndef WIDEN_H
#define WIDEN_H
#ifndef CONVERSION_UTILITIES_WIDEN_H
#define CONVERSION_UTILITIES_WIDEN_H
#include "../application/global.h"
@ -49,4 +49,4 @@ private:
}
#endif // WIDEN_H
#endif // CONVERSION_UTILITIES_WIDEN_H

@ -1,5 +1,5 @@
#ifndef ANSIESCAPECODES
#define ANSIESCAPECODES
#ifndef IOUTILITIES_ANSIESCAPECODES
#define IOUTILITIES_ANSIESCAPECODES
#include "../application/global.h"
@ -101,5 +101,5 @@ inline void eraseLine(std::ostream &stream)
}
#endif // ANSIESCAPECODES
#endif // IOUTILITIES_ANSIESCAPECODES

@ -1,5 +1,5 @@
#ifndef BINERYREADER_H
#define BINERYREADER_H
#ifndef IOUTILITIES_BINERYREADER_H
#define IOUTILITIES_BINERYREADER_H
#include "../application/global.h"
#include "../conversion/types.h"
@ -564,4 +564,4 @@ inline float32 BinaryReader::readFixed16LE()
}
#endif // BINERYREADER_H
#endif // IOUTILITIES_BINERYREADER_H

@ -1,5 +1,5 @@
#ifndef BINARYWRITER_H
#define BINARYWRITER_H
#ifndef IOUTILITIES_BINARYWRITER_H
#define IOUTILITIES_BINARYWRITER_H
#include "../application/global.h"
#include "../conversion/types.h"
@ -531,4 +531,4 @@ inline void BinaryWriter::writeFixed16LE(float32 valueToConvertAndWrite)
}
#endif // BINARYWRITER_H
#endif // IO_UTILITIES_BINARYWRITER_H

@ -1,5 +1,5 @@
#ifndef PATHHELPER_H
#define PATHHELPER_H
#ifndef IOUTILITIES_PATHHELPER_H
#define IOUTILITIES_PATHHELPER_H
#include "./binarywriter.h"
#include "./binaryreader.h"
@ -28,4 +28,4 @@ LIB_EXPORT bool settingsDirectory(std::string &result, std::string applicationDi
}
#endif // PATHHELPER_H
#endif // IOUTILITIES_PATHHELPER_H

Loading…
Cancel
Save