Replace include guards with pragma once
This commit is contained in:
@@ -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__
|
||||
}
|
@@ -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__
|
||||
}
|
@@ -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__
|
||||
}
|
@@ -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__
|
||||
}
|
@@ -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__
|
||||
}
|
@@ -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__
|
||||
}
|
@@ -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__
|
||||
}
|
@@ -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__
|
||||
}
|
@@ -1,8 +1,6 @@
|
||||
#ifndef __JABYENGINE_SCRATCHPAD_HPP__
|
||||
#define __JABYENGINE_SCRATCHPAD_HPP__
|
||||
#pragma once
|
||||
#include "../jabyengine_defines.h"
|
||||
|
||||
namespace JabyEngine {
|
||||
static __always_inline auto& ScratchPad = reinterpret_cast<uint8_t(&)[1024]>(*reinterpret_cast<uint8_t*>(0x1F800000));
|
||||
}
|
||||
#endif //!__JABYENGINE_SCRATCHPAD_HPP__
|
||||
}
|
Reference in New Issue
Block a user