Replace include guards with pragma once

This commit is contained in:
2023-10-05 21:40:04 +02:00
parent b9cfbaec6b
commit c976141c51
42 changed files with 83 additions and 193 deletions

View File

@@ -1,5 +1,4 @@
#ifndef __JABYENGINE_CD_IO_HPP__
#define __JABYENGINE_CD_IO_HPP__
#pragma once
#include "ioport.hpp"
namespace JabyEngine {
@@ -232,6 +231,4 @@ namespace JabyEngine {
#undef __declare_index_io_port
#undef __declare_index_io_port_const
}
}
#endif //!__JABYENGINE_CD_IO_HPP__
}

View File

@@ -1,5 +1,4 @@
#ifndef __JABYENGINE_DMA_IO_HPP__
#define __JABYENGINE_DMA_IO_HPP__
#pragma once
#include "ioport.hpp"
namespace JabyEngine {
@@ -151,5 +150,4 @@ namespace JabyEngine {
__declare_io_port(, DPCR, 0x1F8010F0);
__declare_io_port(, DICR, 0x1F8010F4);
}
}
#endif //!__JABYENGINE_DMA_IO_HPP__
}

View File

@@ -1,5 +1,4 @@
#ifndef __JABYENGINE_GPU_IO_HPP__
#define __JABYENGINE_GPU_IO_HPP__
#pragma once
#include "ioport.hpp"
#include "../../GPU/gpu_types.hpp"
#include <stdio.h>
@@ -223,5 +222,4 @@ namespace JabyEngine {
__declare_io_port(const, GPUREAD, 0x1F801810);
__declare_io_port(const, GPUSTAT, 0x1F801814);
}
}
#endif //!__JABYENGINE_GPU_IO_HPP__
}

View File

@@ -1,5 +1,4 @@
#ifndef __JABYENGINE_INTERRUPT_IO_HPP__
#define __JABYENGINE_INTERRUPT_IO_HPP__
#pragma once
#include "ioport.hpp"
namespace JabyEngine {
@@ -42,6 +41,4 @@ namespace JabyEngine {
Mask.write(Mask.read().set(irq));
}
};
}
#endif //!__JABYENGINE_INTERRUPT_IO_HPP__
}

View File

@@ -1,5 +1,4 @@
#ifndef __JABYENGINE_IOPORT_HPP__
#define __JABYENGINE_IOPORT_HPP__
#pragma once
#include "../../Auxiliary/types.hpp"
#include "../../Auxiliary/bits.hpp"
@@ -116,5 +115,4 @@ namespace JabyEngine {
#define __declare_io_port_w_type(cv, type, name, adr) __declare_value_at(cv, ::JabyEngine::IOPort<type>, name, adr)
#define __declare_io_port(cv, name, adr) __declare_io_port_w_type(cv, struct name, name, adr)
#define __declare_io_port_array(cv, name, size, adr) __declare_array_at(cv, struct name, name, size, adr)
}
#endif //!__JABYENGINE_IOPORT_HPP__
}

View File

@@ -1,5 +1,4 @@
#ifndef __JABYENGINE_MEMORY_IO_HPP__
#define __JABYENGINE_MEMORY_IO_HPP__
#pragma once
#include "ioport.hpp"
namespace JabyEngine {
@@ -19,6 +18,4 @@ namespace JabyEngine {
__declare_io_port(, COM_DELAY, 0x1F801020);
__declare_io_port(, CD_DELAY, 0x1F801018);
}
}
#endif //!__JABYENGINE_MEMORY_IO_HPP__
}

View File

@@ -1,5 +1,4 @@
#ifndef __JABYENGINE_SPU_IO_HPP__
#define __JABYENGINE_SPU_IO_HPP__
#pragma once
#include "ioport.hpp"
namespace JabyEngine {
@@ -165,5 +164,4 @@ namespace JabyEngine {
__declare_io_port_array(, Voice, VoiceCount, 0x1F801C00);
}
}
#endif //!__JABYENGINE_SPU_IO_HPP__
}

View File

@@ -1,5 +1,4 @@
#ifndef __JABYENGINE_TIMER_IO_HPP__
#define __JABYENGINE_TIMER_IO_HPP__
#pragma once
#include "ioport.hpp"
namespace JabyEngine {
@@ -111,6 +110,4 @@ namespace JabyEngine {
__declare_value_at(, struct Counter1, Counter1, counter_base_adr(1));
__declare_value_at(, struct Counter2, Counter2, counter_base_adr(2));
}
}
#endif //!__JABYENGINE_TIMER_IO_HPP__
}