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_AUTO_LBA_HPP__
#define __JABYENGINE_AUTO_LBA_HPP__
#pragma once
#include "../Auxiliary/bits.hpp"
namespace JabyEngine {
@@ -39,6 +38,4 @@ namespace JabyEngine {
return const_cast<const AutoLBAEntry*>(this)->is_lz4();
}
};
}
#endif //!__JABYENGINE_AUTO_LBA_HPP__
}

View File

@@ -1,9 +1,6 @@
#ifndef __JABYENGINE_AUTO_LBA_DECLARATION_HPP__
#define __JABYENGINE_AUTO_LBA_DECLARATION_HPP__
#pragma once
extern const volatile JabyEngine::AutoLBAEntry lba[];
#define __declare_lba_header(enum_struct) \
[[gnu::used]] \
const volatile JabyEngine::AutoLBAEntry __section(".header.lbas") lba[static_cast<int>(enum_struct::EndOfRequest)] = {0}
#endif //!__JABYENGINE_AUTO_LBA_DECLARATION_HPP__