summaryrefslogtreecommitdiffhomepage
path: root/include/CompilerKit/Detail
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/Detail
parentba1b968d17a1ed29694f850af58787c3eb2657d4 (diff)
feat! Use header guards instead of pragma once.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'include/CompilerKit/Detail')
-rw-r--r--include/CompilerKit/Detail/32x0.h5
-rw-r--r--include/CompilerKit/Detail/64x0.h5
-rw-r--r--include/CompilerKit/Detail/AMD64.h5
-rw-r--r--include/CompilerKit/Detail/Aarch64.h5
-rw-r--r--include/CompilerKit/Detail/Power64.h5
5 files changed, 20 insertions, 5 deletions
diff --git a/include/CompilerKit/Detail/32x0.h b/include/CompilerKit/Detail/32x0.h
index 0bd43ee..eb68a5b 100644
--- a/include/CompilerKit/Detail/32x0.h
+++ b/include/CompilerKit/Detail/32x0.h
@@ -4,7 +4,8 @@
======================================== */
-#pragma once
+#ifndef NECTAR_COMPILERKIT_DETAIL_32X0_H
+#define NECTAR_COMPILERKIT_DETAIL_32X0_H
#include <CompilerKit/Detail/Config.h>
#include <vector>
@@ -93,3 +94,5 @@ inline std::vector<CpuCode32x0> kOpcodes32x0 = {
////////////////////////////////
+#endif // NECTAR_COMPILERKIT_DETAIL_32X0_H
+
diff --git a/include/CompilerKit/Detail/64x0.h b/include/CompilerKit/Detail/64x0.h
index b7fca8a..374ac76 100644
--- a/include/CompilerKit/Detail/64x0.h
+++ b/include/CompilerKit/Detail/64x0.h
@@ -4,7 +4,8 @@
======================================== */
-#pragma once
+#ifndef NECTAR_COMPILERKIT_DETAIL_64X0_H
+#define NECTAR_COMPILERKIT_DETAIL_64X0_H
#include <CompilerKit/Detail/Config.h>
#include <vector>
@@ -99,3 +100,5 @@ inline std::vector<CpuOpcode64x0> kOpcodes64x0 = {
////////////////////////////////
+#endif // NECTAR_COMPILERKIT_DETAIL_64X0_H
+
diff --git a/include/CompilerKit/Detail/AMD64.h b/include/CompilerKit/Detail/AMD64.h
index 4bc469a..fcf7867 100644
--- a/include/CompilerKit/Detail/AMD64.h
+++ b/include/CompilerKit/Detail/AMD64.h
@@ -4,7 +4,8 @@
======================================== */
-#pragma once
+#ifndef NECTAR_COMPILERKIT_DETAIL_AMD64_H
+#define NECTAR_COMPILERKIT_DETAIL_AMD64_H
#include <CompilerKit/Detail/Config.h>
#include <vector>
@@ -49,3 +50,5 @@ inline std::vector<CpuOpcodeAMD64> kOpcodesAMD64 = {
#define kAsmRegisterLimit 16
+#endif // NECTAR_COMPILERKIT_DETAIL_AMD64_H
+
diff --git a/include/CompilerKit/Detail/Aarch64.h b/include/CompilerKit/Detail/Aarch64.h
index fdfd2d9..e12262b 100644
--- a/include/CompilerKit/Detail/Aarch64.h
+++ b/include/CompilerKit/Detail/Aarch64.h
@@ -4,7 +4,8 @@ Copyright (C) 2024-2025 Amlal El Mahrouss, licensed under the Apache 2.0 license
======================================== */
-#pragma once
+#ifndef NECTAR_COMPILERKIT_DETAIL_AARCH64_H
+#define NECTAR_COMPILERKIT_DETAIL_AARCH64_H
#include <CompilerKit/Detail/Config.h>
#include <stdint.h>
@@ -40,3 +41,5 @@ typedef struct {
#define kAsmRegisterPrefix "x"
#define kOpcodeARM64Count (1000)
+#endif // NECTAR_COMPILERKIT_DETAIL_AARCH64_H
+
diff --git a/include/CompilerKit/Detail/Power64.h b/include/CompilerKit/Detail/Power64.h
index c3c15c4..48d09dc 100644
--- a/include/CompilerKit/Detail/Power64.h
+++ b/include/CompilerKit/Detail/Power64.h
@@ -8,7 +8,8 @@
======================================== */
-#pragma once
+#ifndef NECTAR_COMPILERKIT_DETAIL_POWER64_H
+#define NECTAR_COMPILERKIT_DETAIL_POWER64_H
#include <stdint.h>
@@ -1556,3 +1557,5 @@ inline CpuOpcodePPC kOpcodesPowerPC[] = {
/* return address register */
#define kAsmRetRegister 19
+#endif // NECTAR_COMPILERKIT_DETAIL_POWER64_H
+