2012-11-15 01:39:56 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
2014-04-15 17:12:15 +03: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 12:23:25 +03:00
|
|
|
|
2016-06-07 23:24:20 +03:00
|
|
|
//#ifndef __STDC_CONSTANT_MACROS
|
|
|
|
|
//#define __STDC_CONSTANT_MACROS
|
|
|
|
|
//#endif
|
2012-11-15 01:39:56 +02:00
|
|
|
|
2014-07-11 06:54:12 +10: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-11 06:54:12 +10:00
|
|
|
#endif
|
2014-04-15 17:12:15 +03:00
|
|
|
|
2015-07-01 01:25:52 +03:00
|
|
|
#pragma warning( disable : 4351 )
|
2015-01-25 19:23:24 +03:00
|
|
|
|
2016-02-02 00:40:38 +03:00
|
|
|
#include <cstdlib>
|
2013-11-19 11:30:58 +01:00
|
|
|
#include <cstdint>
|
2015-06-19 19:53:52 +03:00
|
|
|
#include <climits>
|
2016-04-27 01:27:24 +03:00
|
|
|
#include <cstring>
|
2016-05-13 17:01:48 +03:00
|
|
|
#include <exception>
|
2016-02-02 00:40:38 +03:00
|
|
|
#include <string>
|
2014-08-28 20:29:05 +04:00
|
|
|
#include <memory>
|
|
|
|
|
#include <vector>
|
2014-09-16 17:56:27 +04:00
|
|
|
#include <array>
|
2014-08-28 20:29:05 +04:00
|
|
|
#include <functional>
|
2015-01-29 20:20:34 +05:30
|
|
|
#include <unordered_map>
|
2016-01-15 17:30:09 +03:00
|
|
|
|
2016-05-13 17:01:48 +03:00
|
|
|
// MSVC bug workaround
|
|
|
|
|
#ifdef _MSC_VER
|
|
|
|
|
namespace std { inline namespace literals { inline namespace chrono_literals {}}}
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
using namespace std::literals;
|
2015-08-21 14:07:31 +03:00
|
|
|
|
2016-02-02 00:40:38 +03:00
|
|
|
// Obsolete, throw fmt::exception directly. Use 'HERE' macro, if necessary.
|
|
|
|
|
#define EXCEPTION(format_str, ...) fmt::exception("%s(): " format_str HERE, __FUNCTION__, ##__VA_ARGS__)
|
2015-08-11 19:14:53 +03:00
|
|
|
|
2016-04-20 02:32:27 +03:00
|
|
|
#include "Utilities/types.h"
|
2016-02-02 00:40:38 +03:00
|
|
|
#include "Utilities/Macro.h"
|
|
|
|
|
#include "Utilities/Platform.h"
|
2015-06-21 17:48:21 +03:00
|
|
|
#include "Utilities/BEType.h"
|
2015-09-18 01:41:14 +03:00
|
|
|
#include "Utilities/Atomic.h"
|
2015-06-21 17:48:21 +03:00
|
|
|
#include "Utilities/StrFmt.h"
|
2015-12-22 22:24:35 +03:00
|
|
|
#include "Utilities/File.h"
|
|
|
|
|
#include "Utilities/Log.h"
|