mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-16 23:17:29 +00:00
stdafx.h: remove BOM from custom included headers
Also add warnings about adding them.
This commit is contained in:
parent
2bee096246
commit
3b8e3a9714
@ -1,5 +1,4 @@
|
|||||||
#ifndef BETYPE_H_GUARD
|
#pragma once // No BOM and only basic ASCII in this header, or a neko will die
|
||||||
#define BETYPE_H_GUARD
|
|
||||||
|
|
||||||
#include "types.h"
|
#include "types.h"
|
||||||
#include "util/endian.hpp"
|
#include "util/endian.hpp"
|
||||||
@ -510,5 +509,3 @@ struct fmt_unveil<se_t<T, Se, Align>, void>
|
|||||||
|
|
||||||
static_assert(be_t<u16>(1) + be_t<u32>(2) + be_t<u64>(3) == 6);
|
static_assert(be_t<u16>(1) + be_t<u32>(2) + be_t<u64>(3) == 6);
|
||||||
static_assert(le_t<u16>(1) + le_t<u32>(2) + le_t<u64>(3) == 6);
|
static_assert(le_t<u16>(1) + le_t<u32>(2) + le_t<u64>(3) == 6);
|
||||||
|
|
||||||
#endif // BETYPE_H_GUARD
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#pragma once
|
#pragma once // No BOM and only basic ASCII in this header, or a neko will die
|
||||||
|
|
||||||
#include "types.h"
|
#include "types.h"
|
||||||
#include "bit_set.h"
|
#include "bit_set.h"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#pragma once
|
#pragma once // No BOM and only basic ASCII in this header, or a neko will die
|
||||||
|
|
||||||
#include "types.h"
|
#include "types.h"
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#pragma once
|
#pragma once // No BOM and only basic ASCII in this header, or a neko will die
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
#include <intrin.h>
|
#include <intrin.h>
|
||||||
|
@ -1 +1,5 @@
|
|||||||
|
// No BOM and only basic ASCII in this file, or a neko will die
|
||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
|
|
||||||
|
static_assert(be_t<u16>(1) + be_t<u32>(2) + be_t<u64>(3) == 6);
|
||||||
|
static_assert(le_t<u16>(1) + le_t<u32>(2) + le_t<u64>(3) == 6);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#pragma once
|
#pragma once // No BOM and only basic ASCII in this header, or a neko will die
|
||||||
|
|
||||||
#ifdef MSVC_CRT_MEMLEAK_DETECTION
|
#ifdef MSVC_CRT_MEMLEAK_DETECTION
|
||||||
#define _CRTDBG_MAP_ALLOC
|
#define _CRTDBG_MAP_ALLOC
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#pragma once
|
#pragma once // No BOM and only basic ASCII in this header, or a neko will die
|
||||||
|
|
||||||
#include "Utilities/types.h"
|
#include "Utilities/types.h"
|
||||||
#include <functional>
|
#include <functional>
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
#ifndef ENDIAN_HPP_GUARD
|
#pragma once // No BOM and only basic ASCII in this header, or a neko will die
|
||||||
#define ENDIAN_HPP_GUARD
|
|
||||||
|
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
#include "Utilities/types.h"
|
#include "Utilities/types.h"
|
||||||
@ -492,5 +491,3 @@ public:
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // ENDIAN_HPP_GUARD
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#pragma once
|
#pragma once // No BOM and only basic ASCII in this header, or a neko will die
|
||||||
|
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
#include <atomic>
|
#include <atomic>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#pragma once
|
#pragma once // No BOM and only basic ASCII in this header, or a neko will die
|
||||||
|
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
@ -9,10 +9,12 @@ namespace stx
|
|||||||
template <typename T, typename U>
|
template <typename T, typename U>
|
||||||
constexpr bool is_same_ptr() noexcept
|
constexpr bool is_same_ptr() noexcept
|
||||||
{
|
{
|
||||||
// Should be possible if constexpr bit_cast is available?
|
// I would like to make it a trait if there is some trick.
|
||||||
|
// And believe it shall possible with constexpr bit_cast.
|
||||||
// Otherwise I hope it will compile in null code anyway.
|
// Otherwise I hope it will compile in null code anyway.
|
||||||
const auto u = reinterpret_cast<U*>(0x11223344556);
|
const auto u = reinterpret_cast<U*>(0x11223344556);
|
||||||
return static_cast<T*>(u) == static_cast<void*>(u);
|
const volatile void* x = u;
|
||||||
|
return static_cast<T*>(u) == x;
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO
|
// TODO
|
||||||
|
Loading…
Reference in New Issue
Block a user