Replace include guards with pragma once

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

View File

@@ -1,5 +1,4 @@
#ifndef __JABYENGINE_OVERLAY__HPP__
#define __JABYENGINE_OVERLAY__HPP__
#pragma once
#include "../AutoLBA/auto_lba.hpp"
namespace JabyEngine {
@@ -7,5 +6,4 @@ namespace JabyEngine {
// Can be used to create dummy values to trick LZ4 into compressing an uncompressed overlay
#define __create_dummy_fill(length) static const uint8_t __section(".keep.dummy") __used DummyFilling[length] = {0x0}
}
#endif //!__JABYENGINE_OVERLAY__HPP__
}

View File

@@ -1,10 +1,8 @@
#ifndef __JABYENGINE_OVERLAY_DECLARATION__HPP__
#define __JABYENGINE_OVERLAY_DECLARATION__HPP__
#pragma once
// No include here because this header should be included in a namespace and we don't want multiple namespace definitions of OverlayHeader and OverlayLBA
#include "../AutoLBA/auto_lba_declaration.hpp"
#define __declare_overlay_header(function, enum_struct) \
__declare_lba_header(enum_struct)
#endif //!__JABYENGINE_OVERLAY_DECLARATION__HPP__
__declare_lba_header(enum_struct)