add pragma once to endianness check result

BodgeMaster-unfinished
BodgeMaster 2022-07-01 14:09:46 +02:00
parent 1dcf37c0fc
commit 38b2a6f270
1 changed files with 2 additions and 0 deletions

View File

@ -21,6 +21,8 @@ int main() {
*testInteger = 0x04030201;
auto data = reinterpret_cast<std::uint8_t*>(testInteger);
std::cout << "#pragma once" << std::endl;
if (
*data == 0x01 &&
*(data+1)==0x02 &&