2012-11-15 00:39:56 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
2014-04-15 16:12:15 +02:00
|
|
|
#ifdef MSVC_CRT_MEMLEAK_DETECTION
|
|
|
|
|
#define _CRTDBG_MAP_ALLOC
|
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
#include <crtdbg.h>
|
|
|
|
|
#endif
|
|
|
|
|
|
2014-05-02 08:30:32 +02:00
|
|
|
#define NOMINMAX
|
2015-12-02 10:23:25 +01:00
|
|
|
|
2016-06-07 22:24:20 +02:00
|
|
|
//#ifndef __STDC_CONSTANT_MACROS
|
|
|
|
|
//#define __STDC_CONSTANT_MACROS
|
|
|
|
|
//#endif
|
2012-11-15 00:39:56 +01:00
|
|
|
|
2014-07-10 22:54:12 +02:00
|
|
|
#if defined(MSVC_CRT_MEMLEAK_DETECTION) && defined(_DEBUG) && !defined(DBG_NEW)
|
|
|
|
|
#define DBG_NEW new ( _NORMAL_BLOCK , __FILE__ , __LINE__ )
|
2014-09-07 09:49:25 +02:00
|
|
|
#include "define_new_memleakdetect.h"
|
2014-07-10 22:54:12 +02:00
|
|
|
#endif
|
2014-04-15 16:12:15 +02:00
|
|
|
|
2015-07-01 00:25:52 +02:00
|
|
|
#pragma warning( disable : 4351 )
|
2015-01-25 17:23:24 +01:00
|
|
|
|
2016-05-13 16:01:48 +02:00
|
|
|
// MSVC bug workaround
|
|
|
|
|
#ifdef _MSC_VER
|
|
|
|
|
namespace std { inline namespace literals { inline namespace chrono_literals {}}}
|
|
|
|
|
#endif
|
|
|
|
|
|
2016-04-20 01:32:27 +02:00
|
|
|
#include "Utilities/types.h"
|
2015-06-21 16:48:21 +02:00
|
|
|
#include "Utilities/BEType.h"
|
2015-09-18 00:41:14 +02:00
|
|
|
#include "Utilities/Atomic.h"
|
2015-06-21 16:48:21 +02:00
|
|
|
#include "Utilities/StrFmt.h"
|
2015-12-22 20:24:35 +01:00
|
|
|
#include "Utilities/File.h"
|
|
|
|
|
#include "Utilities/Log.h"
|
2016-08-14 02:22:19 +02:00
|
|
|
|
|
|
|
|
#include <cstdlib>
|
|
|
|
|
#include <cstring>
|
|
|
|
|
#include <climits>
|
|
|
|
|
#include <exception>
|
|
|
|
|
#include <stdexcept>
|
|
|
|
|
#include <string>
|
|
|
|
|
#include <memory>
|
|
|
|
|
#include <vector>
|
|
|
|
|
#include <array>
|
|
|
|
|
#include <functional>
|
|
|
|
|
#include <unordered_map>
|
2018-02-03 20:50:48 +01:00
|
|
|
#include <algorithm>
|
2018-09-11 18:02:19 +02:00
|
|
|
#include <string_view>
|
2016-08-14 02:22:19 +02:00
|
|
|
|
|
|
|
|
using namespace std::literals;
|