mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-03 13:31:27 +12:00
GSL moved from stdafx.h (#1676)
Added GSL.h helper for correct including
This commit is contained in:
parent
efc8779275
commit
75fe95eeb1
19 changed files with 51 additions and 30 deletions
14
Utilities/GSL.h
Normal file
14
Utilities/GSL.h
Normal file
|
@ -0,0 +1,14 @@
|
|||
#pragma once
|
||||
|
||||
#define GSL_THROW_ON_CONTRACT_VIOLATION
|
||||
|
||||
#pragma push_macro("new")
|
||||
#pragma push_macro("Expects")
|
||||
#pragma push_macro("Ensures")
|
||||
#undef new
|
||||
#undef Expects
|
||||
#undef Ensures
|
||||
#include <gsl.h>
|
||||
#pragma pop_macro("Ensures")
|
||||
#pragma pop_macro("Expects")
|
||||
#pragma pop_macro("new")
|
|
@ -28,6 +28,11 @@ using s16 = std::int16_t;
|
|||
using s32 = std::int32_t;
|
||||
using s64 = std::int64_t;
|
||||
|
||||
namespace gsl
|
||||
{
|
||||
enum class byte : std::uint8_t;
|
||||
}
|
||||
|
||||
// Specialization with static constexpr pair<T1, T2> map[] member expected
|
||||
template<typename T1, typename T2>
|
||||
struct bijective;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue