mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-24 12:02:08 +00:00
Use consistent RGBDS_<PROG>_<NAME>_HPP header guard convention
This commit is contained in:
@@ -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 <stdint.h>
|
||||
#include <string>
|
||||
@@ -18,4 +18,4 @@ bool charmap_HasChar(std::string const &input);
|
||||
void charmap_Convert(std::string const &input, std::vector<uint8_t> &output);
|
||||
size_t charmap_ConvertNext(char const *&input, std::vector<uint8_t> *output);
|
||||
|
||||
#endif // RGBDS_ASM_CHARMAP_H
|
||||
#endif // RGBDS_ASM_CHARMAP_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 <stdint.h>
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 <stddef.h>
|
||||
#include <stdint.h>
|
||||
@@ -41,4 +41,4 @@ public:
|
||||
void appendNumber(std::string &str, uint32_t value) const;
|
||||
};
|
||||
|
||||
#endif // RGBDS_FORMAT_SPEC_H
|
||||
#endif // RGBDS_ASM_FORMAT_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 <memory>
|
||||
#include <optional>
|
||||
@@ -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
|
||||
|
||||
@@ -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 <deque>
|
||||
#include <memory>
|
||||
@@ -155,4 +155,4 @@ struct Capture {
|
||||
Capture lexer_CaptureRept();
|
||||
Capture lexer_CaptureMacro();
|
||||
|
||||
#endif // RGBDS_ASM_LEXER_H
|
||||
#endif // RGBDS_ASM_LEXER_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 <memory>
|
||||
#include <stdint.h>
|
||||
@@ -20,4 +20,4 @@ struct MacroArgs {
|
||||
void shiftArgs(int32_t count);
|
||||
};
|
||||
|
||||
#endif // RGBDS_MACRO_H
|
||||
#endif // RGBDS_ASM_MACRO_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 <stdio.h>
|
||||
#include <string>
|
||||
@@ -15,4 +15,4 @@ extern bool generatedMissingIncludes;
|
||||
extern bool failedOnMissingInclude;
|
||||
extern bool generatePhonyDeps;
|
||||
|
||||
#endif // RGBDS_MAIN_H
|
||||
#endif // RGBDS_ASM_MAIN_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 <stdint.h>
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 <memory>
|
||||
#include <stdint.h>
|
||||
@@ -22,4 +22,4 @@ void out_CreateAssert(
|
||||
);
|
||||
void out_WriteObject();
|
||||
|
||||
#endif // RGBDS_ASM_OUTPUT_H
|
||||
#endif // RGBDS_ASM_OUTPUT_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 <stdint.h>
|
||||
#include <string>
|
||||
@@ -63,4 +63,4 @@ private:
|
||||
uint8_t *reserveSpace(uint32_t size, uint32_t patchSize);
|
||||
};
|
||||
|
||||
#endif // RGBDS_ASM_RPN_H
|
||||
#endif // RGBDS_ASM_RPN_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 <deque>
|
||||
#include <memory>
|
||||
@@ -100,4 +100,4 @@ void sect_EndSection();
|
||||
void sect_PushSection();
|
||||
void sect_PopSection();
|
||||
|
||||
#endif // RGBDS_SECTION_H
|
||||
#endif // RGBDS_ASM_SECTION_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 <memory>
|
||||
#include <optional>
|
||||
@@ -100,4 +100,4 @@ void sym_Init(time_t now);
|
||||
std::optional<std::string> const &sym_GetCurrentSymbolScope();
|
||||
void sym_SetCurrentSymbolScope(std::optional<std::string> const &newScope);
|
||||
|
||||
#endif // RGBDS_SYMBOL_H
|
||||
#endif // RGBDS_ASM_SYMBOL_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
|
||||
|
||||
Reference in New Issue
Block a user