mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-16 23:17:29 +00:00
54 lines
1.2 KiB
C++
54 lines
1.2 KiB
C++
#pragma once
|
|
|
|
#ifdef MSVC_CRT_MEMLEAK_DETECTION
|
|
#define _CRTDBG_MAP_ALLOC
|
|
#include <stdlib.h>
|
|
#include <crtdbg.h>
|
|
#endif
|
|
|
|
#define NOMINMAX
|
|
|
|
//#ifndef __STDC_CONSTANT_MACROS
|
|
//#define __STDC_CONSTANT_MACROS
|
|
//#endif
|
|
|
|
#if defined(MSVC_CRT_MEMLEAK_DETECTION) && defined(_DEBUG) && !defined(DBG_NEW)
|
|
#define DBG_NEW new ( _NORMAL_BLOCK , __FILE__ , __LINE__ )
|
|
#include "define_new_memleakdetect.h"
|
|
#endif
|
|
|
|
#pragma warning( disable : 4351 )
|
|
|
|
#include <cstdlib>
|
|
#include <cstdint>
|
|
#include <climits>
|
|
#include <cstring>
|
|
#include <exception>
|
|
#include <string>
|
|
#include <memory>
|
|
#include <vector>
|
|
#include <array>
|
|
#include <functional>
|
|
#include <unordered_map>
|
|
|
|
// MSVC bug workaround
|
|
#ifdef _MSC_VER
|
|
namespace std { inline namespace literals { inline namespace chrono_literals {}}}
|
|
#endif
|
|
|
|
using namespace std::literals;
|
|
|
|
// Obsolete, throw fmt::exception directly. Use 'HERE' macro, if necessary.
|
|
#define EXCEPTION(format_str, ...) fmt::exception("%s(): " format_str HERE, __FUNCTION__, ##__VA_ARGS__)
|
|
|
|
#define _PRGNAME_ "RPCS3"
|
|
|
|
#include "Utilities/types.h"
|
|
#include "Utilities/Macro.h"
|
|
#include "Utilities/Platform.h"
|
|
#include "Utilities/BEType.h"
|
|
#include "Utilities/Atomic.h"
|
|
#include "Utilities/StrFmt.h"
|
|
#include "Utilities/File.h"
|
|
#include "Utilities/Log.h"
|