From b8387427a6dd9fbc0bdf81e46c2b5e967892423b Mon Sep 17 00:00:00 2001 From: Rangi42 Date: Sun, 14 Apr 2024 21:43:06 -0400 Subject: [PATCH] Use consistent `RGBDS___HPP` header guard convention --- include/asm/charmap.hpp | 6 +++--- include/asm/fixpoint.hpp | 6 +++--- include/asm/format.hpp | 6 +++--- include/asm/fstack.hpp | 6 +++--- include/asm/lexer.hpp | 6 +++--- include/asm/macro.hpp | 6 +++--- include/asm/main.hpp | 6 +++--- include/asm/opt.hpp | 6 +++--- include/asm/output.hpp | 6 +++--- include/asm/rpn.hpp | 6 +++--- include/asm/section.hpp | 6 +++--- include/asm/symbol.hpp | 6 +++--- include/asm/warning.hpp | 6 +++--- include/defaultinitalloc.hpp | 16 +++++++++------- include/error.hpp | 6 +++--- include/extern/getopt.hpp | 6 +++--- include/extern/utf8decoder.hpp | 6 +++--- include/gfx/process.hpp | 6 +++--- include/helpers.hpp | 6 +++--- include/link/assign.hpp | 6 +++--- include/link/main.hpp | 6 +++--- include/link/object.hpp | 6 +++--- include/link/output.hpp | 6 +++--- include/link/patch.hpp | 6 +++--- include/link/sdas_obj.hpp | 6 +++--- include/link/section.hpp | 6 +++--- include/link/symbol.hpp | 6 +++--- include/linkdefs.hpp | 6 +++--- include/opmath.hpp | 6 +++--- include/platform.hpp | 6 +++--- include/util.hpp | 6 +++--- include/version.hpp | 6 +++--- 32 files changed, 102 insertions(+), 100 deletions(-) diff --git a/include/asm/charmap.hpp b/include/asm/charmap.hpp index aa416236..caf708ad 100644 --- a/include/asm/charmap.hpp +++ b/include/asm/charmap.hpp @@ -1,7 +1,7 @@ /* SPDX-License-Identifier: MIT */ -#ifndef RGBDS_ASM_CHARMAP_H -#define RGBDS_ASM_CHARMAP_H +#ifndef RGBDS_ASM_CHARMAP_HPP +#define RGBDS_ASM_CHARMAP_HPP #include #include @@ -18,4 +18,4 @@ bool charmap_HasChar(std::string const &input); void charmap_Convert(std::string const &input, std::vector &output); size_t charmap_ConvertNext(char const *&input, std::vector *output); -#endif // RGBDS_ASM_CHARMAP_H +#endif // RGBDS_ASM_CHARMAP_HPP diff --git a/include/asm/fixpoint.hpp b/include/asm/fixpoint.hpp index 5d0eeed8..7a1374f7 100644 --- a/include/asm/fixpoint.hpp +++ b/include/asm/fixpoint.hpp @@ -1,7 +1,7 @@ /* SPDX-License-Identifier: MIT */ -#ifndef RGBDS_ASM_FIXPOINT_H -#define RGBDS_ASM_FIXPOINT_H +#ifndef RGBDS_ASM_FIXPOINT_HPP +#define RGBDS_ASM_FIXPOINT_HPP #include @@ -25,4 +25,4 @@ int32_t fix_Round(int32_t i, int32_t q); int32_t fix_Ceil(int32_t i, int32_t q); int32_t fix_Floor(int32_t i, int32_t q); -#endif // RGBDS_ASM_FIXPOINT_H +#endif // RGBDS_ASM_FIXPOINT_HPP diff --git a/include/asm/format.hpp b/include/asm/format.hpp index 8a85c200..537160d1 100644 --- a/include/asm/format.hpp +++ b/include/asm/format.hpp @@ -1,7 +1,7 @@ /* SPDX-License-Identifier: MIT */ -#ifndef RGBDS_FORMAT_SPEC_H -#define RGBDS_FORMAT_SPEC_H +#ifndef RGBDS_ASM_FORMAT_HPP +#define RGBDS_ASM_FORMAT_HPP #include #include @@ -41,4 +41,4 @@ public: void appendNumber(std::string &str, uint32_t value) const; }; -#endif // RGBDS_FORMAT_SPEC_H +#endif // RGBDS_ASM_FORMAT_HPP diff --git a/include/asm/fstack.hpp b/include/asm/fstack.hpp index ab51f3a6..439bc91a 100644 --- a/include/asm/fstack.hpp +++ b/include/asm/fstack.hpp @@ -2,8 +2,8 @@ // Contains some assembler-wide defines and externs -#ifndef RGBDS_ASM_FSTACK_H -#define RGBDS_ASM_FSTACK_H +#ifndef RGBDS_ASM_FSTACK_HPP +#define RGBDS_ASM_FSTACK_HPP #include #include @@ -81,4 +81,4 @@ bool fstk_Break(); void fstk_NewRecursionDepth(size_t newDepth); void fstk_Init(std::string const &mainPath, size_t maxDepth); -#endif // RGBDS_ASM_FSTACK_H +#endif // RGBDS_ASM_FSTACK_HPP diff --git a/include/asm/lexer.hpp b/include/asm/lexer.hpp index 2f13e4a1..f0f4b8c5 100644 --- a/include/asm/lexer.hpp +++ b/include/asm/lexer.hpp @@ -1,7 +1,7 @@ /* SPDX-License-Identifier: MIT */ -#ifndef RGBDS_ASM_LEXER_H -#define RGBDS_ASM_LEXER_H +#ifndef RGBDS_ASM_LEXER_HPP +#define RGBDS_ASM_LEXER_HPP #include #include @@ -155,4 +155,4 @@ struct Capture { Capture lexer_CaptureRept(); Capture lexer_CaptureMacro(); -#endif // RGBDS_ASM_LEXER_H +#endif // RGBDS_ASM_LEXER_HPP diff --git a/include/asm/macro.hpp b/include/asm/macro.hpp index 9cfbde7e..a9c74437 100644 --- a/include/asm/macro.hpp +++ b/include/asm/macro.hpp @@ -1,7 +1,7 @@ /* SPDX-License-Identifier: MIT */ -#ifndef RGBDS_MACRO_H -#define RGBDS_MACRO_H +#ifndef RGBDS_ASM_MACRO_HPP +#define RGBDS_ASM_MACRO_HPP #include #include @@ -20,4 +20,4 @@ struct MacroArgs { void shiftArgs(int32_t count); }; -#endif // RGBDS_MACRO_H +#endif // RGBDS_ASM_MACRO_HPP diff --git a/include/asm/main.hpp b/include/asm/main.hpp index 1163b04d..6521a7af 100644 --- a/include/asm/main.hpp +++ b/include/asm/main.hpp @@ -1,7 +1,7 @@ /* SPDX-License-Identifier: MIT */ -#ifndef RGBDS_MAIN_H -#define RGBDS_MAIN_H +#ifndef RGBDS_ASM_MAIN_HPP +#define RGBDS_ASM_MAIN_HPP #include #include @@ -15,4 +15,4 @@ extern bool generatedMissingIncludes; extern bool failedOnMissingInclude; extern bool generatePhonyDeps; -#endif // RGBDS_MAIN_H +#endif // RGBDS_ASM_MAIN_HPP diff --git a/include/asm/opt.hpp b/include/asm/opt.hpp index c7fc3aae..78471acd 100644 --- a/include/asm/opt.hpp +++ b/include/asm/opt.hpp @@ -1,7 +1,7 @@ /* SPDX-License-Identifier: MIT */ -#ifndef RGBDS_OPT_H -#define RGBDS_OPT_H +#ifndef RGBDS_ASM_OPT_HPP +#define RGBDS_ASM_OPT_HPP #include @@ -15,4 +15,4 @@ void opt_Parse(char const *option); void opt_Push(); void opt_Pop(); -#endif // RGBDS_OPT_H +#endif // RGBDS_ASM_OPT_HPP diff --git a/include/asm/output.hpp b/include/asm/output.hpp index 7db45a32..cacd1ef2 100644 --- a/include/asm/output.hpp +++ b/include/asm/output.hpp @@ -1,7 +1,7 @@ /* SPDX-License-Identifier: MIT */ -#ifndef RGBDS_ASM_OUTPUT_H -#define RGBDS_ASM_OUTPUT_H +#ifndef RGBDS_ASM_OUTPUT_HPP +#define RGBDS_ASM_OUTPUT_HPP #include #include @@ -22,4 +22,4 @@ void out_CreateAssert( ); void out_WriteObject(); -#endif // RGBDS_ASM_OUTPUT_H +#endif // RGBDS_ASM_OUTPUT_HPP diff --git a/include/asm/rpn.hpp b/include/asm/rpn.hpp index 2c74ecd1..e457dce2 100644 --- a/include/asm/rpn.hpp +++ b/include/asm/rpn.hpp @@ -1,7 +1,7 @@ /* SPDX-License-Identifier: MIT */ -#ifndef RGBDS_ASM_RPN_H -#define RGBDS_ASM_RPN_H +#ifndef RGBDS_ASM_RPN_HPP +#define RGBDS_ASM_RPN_HPP #include #include @@ -63,4 +63,4 @@ private: uint8_t *reserveSpace(uint32_t size, uint32_t patchSize); }; -#endif // RGBDS_ASM_RPN_H +#endif // RGBDS_ASM_RPN_HPP diff --git a/include/asm/section.hpp b/include/asm/section.hpp index 9348836c..a51e6d38 100644 --- a/include/asm/section.hpp +++ b/include/asm/section.hpp @@ -1,7 +1,7 @@ /* SPDX-License-Identifier: MIT */ -#ifndef RGBDS_SECTION_H -#define RGBDS_SECTION_H +#ifndef RGBDS_ASM_SECTION_HPP +#define RGBDS_ASM_SECTION_HPP #include #include @@ -100,4 +100,4 @@ void sect_EndSection(); void sect_PushSection(); void sect_PopSection(); -#endif // RGBDS_SECTION_H +#endif // RGBDS_ASM_SECTION_HPP diff --git a/include/asm/symbol.hpp b/include/asm/symbol.hpp index d531f8f6..409e2ba5 100644 --- a/include/asm/symbol.hpp +++ b/include/asm/symbol.hpp @@ -1,7 +1,7 @@ /* SPDX-License-Identifier: MIT */ -#ifndef RGBDS_SYMBOL_H -#define RGBDS_SYMBOL_H +#ifndef RGBDS_ASM_SYMBOL_HPP +#define RGBDS_ASM_SYMBOL_HPP #include #include @@ -100,4 +100,4 @@ void sym_Init(time_t now); std::optional const &sym_GetCurrentSymbolScope(); void sym_SetCurrentSymbolScope(std::optional const &newScope); -#endif // RGBDS_SYMBOL_H +#endif // RGBDS_ASM_SYMBOL_HPP diff --git a/include/asm/warning.hpp b/include/asm/warning.hpp index 0e6e5481..aef409d3 100644 --- a/include/asm/warning.hpp +++ b/include/asm/warning.hpp @@ -1,7 +1,7 @@ /* SPDX-License-Identifier: MIT */ -#ifndef WARNING_H -#define WARNING_H +#ifndef RGBDS_ASM_WARNING_HPP +#define RGBDS_ASM_WARNING_HPP extern unsigned int nbErrors, maxErrors; @@ -79,4 +79,4 @@ void processWarningFlag(char const *flag); */ [[gnu::format(printf, 1, 2)]] void error(char const *fmt, ...); -#endif // WARNING_H +#endif // RGBDS_ASM_WARNING_HPP diff --git a/include/defaultinitalloc.hpp b/include/defaultinitalloc.hpp index 5335831d..a656b68c 100644 --- a/include/defaultinitalloc.hpp +++ b/include/defaultinitalloc.hpp @@ -1,3 +1,11 @@ +/* SPDX-License-Identifier: MIT */ + +#ifndef RGBDS_DEFAULT_INIT_ALLOC_HPP +#define RGBDS_DEFAULT_INIT_ALLOC_HPP + +#include +#include + /* * Allocator adaptor that interposes construct() calls to convert value-initialization * (which is what you get with e.g. `vector::resize`) into default-initialization (which does not @@ -6,12 +14,6 @@ * https://stackoverflow.com/questions/21028299/is-this-behavior-of-vectorresizesize-type-n-under-c11-and-boost-container/21028912#21028912 */ -#ifndef DEFAULT_INIT_ALLOC_H -#define DEFAULT_INIT_ALLOC_H - -#include -#include - template> class default_init_allocator : public A { using a_t = std::allocator_traits; @@ -36,4 +38,4 @@ public: template using DefaultInitVec = std::vector>; -#endif // DEFAULT_INIT_ALLOC_H +#endif // RGBDS_DEFAULT_INIT_ALLOC_HPP diff --git a/include/error.hpp b/include/error.hpp index 4ed9ad4f..5f8476d8 100644 --- a/include/error.hpp +++ b/include/error.hpp @@ -1,7 +1,7 @@ /* SPDX-License-Identifier: MIT */ -#ifndef RGBDS_ERROR_H -#define RGBDS_ERROR_H +#ifndef RGBDS_ERROR_HPP +#define RGBDS_ERROR_HPP extern "C" { @@ -12,4 +12,4 @@ extern "C" { [[gnu::format(printf, 1, 2), noreturn]] void errx(char const *fmt, ...); } -#endif // RGBDS_ERROR_H +#endif // RGBDS_ERROR_HPP diff --git a/include/extern/getopt.hpp b/include/extern/getopt.hpp index b5d56ee5..68bda496 100644 --- a/include/extern/getopt.hpp +++ b/include/extern/getopt.hpp @@ -2,8 +2,8 @@ /* This implementation was taken from musl and modified for RGBDS */ -#ifndef RGBDS_EXTERN_GETOPT_H -#define RGBDS_EXTERN_GETOPT_H +#ifndef RGBDS_EXTERN_GETOPT_HPP +#define RGBDS_EXTERN_GETOPT_HPP extern "C" { @@ -27,4 +27,4 @@ int musl_getopt_long_only( } // extern "C" -#endif +#endif // RGBDS_EXTERN_GETOPT_HPP diff --git a/include/extern/utf8decoder.hpp b/include/extern/utf8decoder.hpp index 6f5646c6..49920173 100644 --- a/include/extern/utf8decoder.hpp +++ b/include/extern/utf8decoder.hpp @@ -1,10 +1,10 @@ /* SPDX-License-Identifier: MIT */ -#ifndef EXTERN_UTF8DECODER_H -#define EXTERN_UTF8DECODER_H +#ifndef RGBDS_EXTERN_UTF8DECODER_HPP +#define RGBDS_EXTERN_UTF8DECODER_HPP #include uint32_t decode(uint32_t *state, uint32_t *codep, uint8_t byte); -#endif // EXTERN_UTF8DECODER_H +#endif // RGBDS_EXTERN_UTF8DECODER_HPP diff --git a/include/gfx/process.hpp b/include/gfx/process.hpp index 46a1551a..9bff8f28 100644 --- a/include/gfx/process.hpp +++ b/include/gfx/process.hpp @@ -1,9 +1,9 @@ /* SPDX-License-Identifier: MIT */ -#ifndef RGBDS_GFX_CONVERT_HPP -#define RGBDS_GFX_CONVERT_HPP +#ifndef RGBDS_GFX_PROCESS_HPP +#define RGBDS_GFX_PROCESS_HPP void processPalettes(); void process(); -#endif // RGBDS_GFX_CONVERT_HPP +#endif // RGBDS_GFX_PROCESS_HPP diff --git a/include/helpers.hpp b/include/helpers.hpp index 04f2fde6..67e0eb88 100644 --- a/include/helpers.hpp +++ b/include/helpers.hpp @@ -1,7 +1,7 @@ /* SPDX-License-Identifier: MIT */ -#ifndef HELPERS_H -#define HELPERS_H +#ifndef RGBDS_HELPERS_HPP +#define RGBDS_HELPERS_HPP // Ideally we'd use `std::unreachable`, but it has insufficient compiler support #ifdef __GNUC__ // GCC or compatible @@ -111,4 +111,4 @@ struct Defer { ~Defer() { deferred(); } }; -#endif // HELPERS_H +#endif // RGBDS_HELPERS_HPP diff --git a/include/link/assign.hpp b/include/link/assign.hpp index 841876a0..a64bb28f 100644 --- a/include/link/assign.hpp +++ b/include/link/assign.hpp @@ -1,7 +1,7 @@ /* SPDX-License-Identifier: MIT */ -#ifndef RGBDS_LINK_ASSIGN_H -#define RGBDS_LINK_ASSIGN_H +#ifndef RGBDS_LINK_ASSIGN_HPP +#define RGBDS_LINK_ASSIGN_HPP #include @@ -10,4 +10,4 @@ extern uint64_t nbSectionsToAssign; // Assigns all sections a slice of the address space void assign_AssignSections(); -#endif // RGBDS_LINK_ASSIGN_H +#endif // RGBDS_LINK_ASSIGN_HPP diff --git a/include/link/main.hpp b/include/link/main.hpp index b6550f27..2d0d457f 100644 --- a/include/link/main.hpp +++ b/include/link/main.hpp @@ -1,7 +1,7 @@ /* SPDX-License-Identifier: MIT */ -#ifndef RGBDS_LINK_MAIN_H -#define RGBDS_LINK_MAIN_H +#ifndef RGBDS_LINK_MAIN_HPP +#define RGBDS_LINK_MAIN_HPP #include #include @@ -65,4 +65,4 @@ struct FileStackNode { [[gnu::format(printf, 3, 4), noreturn]] void fatal(FileStackNode const *where, uint32_t lineNo, char const *fmt, ...); -#endif // RGBDS_LINK_MAIN_H +#endif // RGBDS_LINK_MAIN_HPP diff --git a/include/link/object.hpp b/include/link/object.hpp index 7163174f..1b08cda9 100644 --- a/include/link/object.hpp +++ b/include/link/object.hpp @@ -1,7 +1,7 @@ /* SPDX-License-Identifier: MIT */ -#ifndef RGBDS_LINK_OBJECT_H -#define RGBDS_LINK_OBJECT_H +#ifndef RGBDS_LINK_OBJECT_HPP +#define RGBDS_LINK_OBJECT_HPP /* * Read an object (.o) file, and add its info to the data structures. @@ -16,4 +16,4 @@ void obj_ReadFile(char const *fileName, unsigned int i); */ void obj_Setup(unsigned int nbFiles); -#endif // RGBDS_LINK_OBJECT_H +#endif // RGBDS_LINK_OBJECT_HPP diff --git a/include/link/output.hpp b/include/link/output.hpp index 6aacc1a2..801947db 100644 --- a/include/link/output.hpp +++ b/include/link/output.hpp @@ -1,7 +1,7 @@ /* SPDX-License-Identifier: MIT */ -#ifndef RGBDS_LINK_OUTPUT_H -#define RGBDS_LINK_OUTPUT_H +#ifndef RGBDS_LINK_OUTPUT_HPP +#define RGBDS_LINK_OUTPUT_HPP #include "link/section.hpp" @@ -23,4 +23,4 @@ Section const *out_OverlappingSection(Section const §ion); */ void out_WriteFiles(); -#endif // RGBDS_LINK_OUTPUT_H +#endif // RGBDS_LINK_OUTPUT_HPP diff --git a/include/link/patch.hpp b/include/link/patch.hpp index 7e2a68c4..532ba50c 100644 --- a/include/link/patch.hpp +++ b/include/link/patch.hpp @@ -1,7 +1,7 @@ /* SPDX-License-Identifier: MIT */ -#ifndef RGBDS_LINK_PATCH_H -#define RGBDS_LINK_PATCH_H +#ifndef RGBDS_LINK_PATCH_HPP +#define RGBDS_LINK_PATCH_HPP /* * Checks all assertions @@ -14,4 +14,4 @@ void patch_CheckAssertions(); */ void patch_ApplyPatches(); -#endif // RGBDS_LINK_PATCH_H +#endif // RGBDS_LINK_PATCH_HPP diff --git a/include/link/sdas_obj.hpp b/include/link/sdas_obj.hpp index e6610271..c8b8cdf5 100644 --- a/include/link/sdas_obj.hpp +++ b/include/link/sdas_obj.hpp @@ -1,7 +1,7 @@ /* SPDX-License-Identifier: MIT */ -#ifndef RGBDS_LINK_SDAS_OBJ_H -#define RGBDS_LINK_SDAS_OBJ_H +#ifndef RGBDS_LINK_SDAS_OBJ_HPP +#define RGBDS_LINK_SDAS_OBJ_HPP #include #include @@ -11,4 +11,4 @@ struct Symbol; void sdobj_ReadFile(FileStackNode const &where, FILE *file, std::vector &fileSymbols); -#endif // RGBDS_LINK_SDAS_OBJ_H +#endif // RGBDS_LINK_SDAS_OBJ_HPP diff --git a/include/link/section.hpp b/include/link/section.hpp index 7fa956e6..b33a9abe 100644 --- a/include/link/section.hpp +++ b/include/link/section.hpp @@ -1,7 +1,7 @@ /* SPDX-License-Identifier: MIT */ -#ifndef RGBDS_LINK_SECTION_H -#define RGBDS_LINK_SECTION_H +#ifndef RGBDS_LINK_SECTION_HPP +#define RGBDS_LINK_SECTION_HPP // GUIDELINE: external code MUST NOT BE AWARE of the data structure used! @@ -88,4 +88,4 @@ Section *sect_GetSection(std::string const &name); */ void sect_DoSanityChecks(); -#endif // RGBDS_LINK_SECTION_H +#endif // RGBDS_LINK_SECTION_HPP diff --git a/include/link/symbol.hpp b/include/link/symbol.hpp index c5e5275f..cbb436da 100644 --- a/include/link/symbol.hpp +++ b/include/link/symbol.hpp @@ -1,7 +1,7 @@ /* SPDX-License-Identifier: MIT */ -#ifndef RGBDS_LINK_SYMBOL_H -#define RGBDS_LINK_SYMBOL_H +#ifndef RGBDS_LINK_SYMBOL_HPP +#define RGBDS_LINK_SYMBOL_HPP // GUIDELINE: external code MUST NOT BE AWARE of the data structure used! @@ -47,4 +47,4 @@ void sym_AddSymbol(Symbol &symbol); */ Symbol *sym_GetSymbol(std::string const &name); -#endif // RGBDS_LINK_SYMBOL_H +#endif // RGBDS_LINK_SYMBOL_HPP diff --git a/include/linkdefs.hpp b/include/linkdefs.hpp index c9348f0d..c4ee0493 100644 --- a/include/linkdefs.hpp +++ b/include/linkdefs.hpp @@ -1,7 +1,7 @@ /* SPDX-License-Identifier: MIT */ -#ifndef RGBDS_LINKDEFS_H -#define RGBDS_LINKDEFS_H +#ifndef RGBDS_LINKDEFS_HPP +#define RGBDS_LINKDEFS_HPP #include #include @@ -129,4 +129,4 @@ enum PatchType { PATCHTYPE_INVALID }; -#endif // RGBDS_LINKDEFS_H +#endif // RGBDS_LINKDEFS_HPP diff --git a/include/opmath.hpp b/include/opmath.hpp index b178f65d..e7df512f 100644 --- a/include/opmath.hpp +++ b/include/opmath.hpp @@ -1,7 +1,7 @@ /* SPDX-License-Identifier: MIT */ -#ifndef RGBDS_OP_MATH_H -#define RGBDS_OP_MATH_H +#ifndef RGBDS_OP_MATH_HPP +#define RGBDS_OP_MATH_HPP #include @@ -12,4 +12,4 @@ int32_t op_shift_left(int32_t value, int32_t amount); int32_t op_shift_right(int32_t value, int32_t amount); int32_t op_shift_right_unsigned(int32_t value, int32_t amount); -#endif // RGBDS_OP_MATH_H +#endif // RGBDS_OP_MATH_HPP diff --git a/include/platform.hpp b/include/platform.hpp index 248ddec6..c4c400b6 100644 --- a/include/platform.hpp +++ b/include/platform.hpp @@ -2,8 +2,8 @@ // platform-specific hacks -#ifndef RGBDS_PLATFORM_H -#define RGBDS_PLATFORM_H +#ifndef RGBDS_PLATFORM_HPP +#define RGBDS_PLATFORM_HPP // MSVC doesn't have str(n)casecmp, use a suitable replacement #ifdef _MSC_VER @@ -56,4 +56,4 @@ #define setmode(fd, mode) (0) #endif -#endif // RGBDS_PLATFORM_H +#endif // RGBDS_PLATFORM_HPP diff --git a/include/util.hpp b/include/util.hpp index 60d2187d..80c76434 100644 --- a/include/util.hpp +++ b/include/util.hpp @@ -1,7 +1,7 @@ /* SPDX-License-Identifier: MIT */ -#ifndef RGBDS_UTIL_H -#define RGBDS_UTIL_H +#ifndef RGBDS_UTIL_HPP +#define RGBDS_UTIL_HPP #include #include @@ -14,4 +14,4 @@ char const *printChar(int c); */ size_t readUTF8Char(std::vector *dest, char const *src); -#endif // RGBDS_UTIL_H +#endif // RGBDS_UTIL_HPP diff --git a/include/version.hpp b/include/version.hpp index a1b8937e..acf86bc0 100644 --- a/include/version.hpp +++ b/include/version.hpp @@ -1,7 +1,7 @@ /* SPDX-License-Identifier: MIT */ -#ifndef EXTERN_VERSION_H -#define EXTERN_VERSION_H +#ifndef RGBDS_VERSION_HPP +#define RGBDS_VERSION_HPP extern "C" { @@ -12,4 +12,4 @@ extern "C" { char const *get_package_version_string(); } -#endif // EXTERN_VERSION_H +#endif // RGBDS_VERSION_H