summaryrefslogtreecommitdiffhomepage
path: root/include/CompilerKit/Utilities
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-12-26 10:10:06 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2025-12-26 10:10:06 +0100
commitd532b43153cb68d6e92c5dac58cbd3c8ab4f60af (patch)
treee748d39deee4e4c0983354ccf3fa419263368f87 /include/CompilerKit/Utilities
parentba1b968d17a1ed29694f850af58787c3eb2657d4 (diff)
feat! Use header guards instead of pragma once.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'include/CompilerKit/Utilities')
-rw-r--r--include/CompilerKit/Utilities/Assembler.h5
-rw-r--r--include/CompilerKit/Utilities/Compiler.h5
-rw-r--r--include/CompilerKit/Utilities/DLL.h5
3 files changed, 12 insertions, 3 deletions
diff --git a/include/CompilerKit/Utilities/Assembler.h b/include/CompilerKit/Utilities/Assembler.h
index e13f1af..e43d451 100644
--- a/include/CompilerKit/Utilities/Assembler.h
+++ b/include/CompilerKit/Utilities/Assembler.h
@@ -4,7 +4,8 @@
======================================== */
-#pragma once
+#ifndef NECTAR_COMPILERKIT_UTILITIES_ASSEMBLER_H
+#define NECTAR_COMPILERKIT_UTILITIES_ASSEMBLER_H
#include <CompilerKit/AST.h>
#include <CompilerKit/CodeGenerator.h>
@@ -94,3 +95,5 @@ inline NumberCast32 GetNumber32(STLString lineBuffer, STLString numberKey) {
}
}
} // namespace CompilerKit
+
+#endif // NECTAR_COMPILERKIT_UTILITIES_ASSEMBLER_H
diff --git a/include/CompilerKit/Utilities/Compiler.h b/include/CompilerKit/Utilities/Compiler.h
index 94060ea..8d00de0 100644
--- a/include/CompilerKit/Utilities/Compiler.h
+++ b/include/CompilerKit/Utilities/Compiler.h
@@ -4,7 +4,8 @@
======================================== */
-#pragma once
+#ifndef NECTAR_COMPILERKIT_UTILITIES_COMPILER_H
+#define NECTAR_COMPILERKIT_UTILITIES_COMPILER_H
#include <CompilerKit/AST.h>
#include <CompilerKit/CodeGenerator.h>
@@ -120,3 +121,5 @@ inline void drvi_crash_handler(std::int32_t id) {
}
} // namespace CompilerKit::Detail
+#endif // NECTAR_COMPILERKIT_UTILITIES_COMPILER_H
+
diff --git a/include/CompilerKit/Utilities/DLL.h b/include/CompilerKit/Utilities/DLL.h
index c6fcd49..1f84bb8 100644
--- a/include/CompilerKit/Utilities/DLL.h
+++ b/include/CompilerKit/Utilities/DLL.h
@@ -4,7 +4,8 @@
======================================== */
-#pragma once
+#ifndef NECTAR_COMPILERKIT_UTILITIES_DLL_H
+#define NECTAR_COMPILERKIT_UTILITIES_DLL_H
#include <CompilerKit/Detail/Config.h>
#include <dlfcn.h>
@@ -68,3 +69,5 @@ class DLLLoader final {
};
} // namespace CompilerKit
+#endif // NECTAR_COMPILERKIT_UTILITIES_DLL_H
+