2018-11-29 22:35:30 +05:00
|
|
|
#ifndef NG_CORE_HPP
|
|
|
|
#define NG_CORE_HPP
|
|
|
|
|
|
|
|
// std includes
|
|
|
|
#include <memory>
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
#include <map>
|
2018-12-05 18:20:24 +05:00
|
|
|
#include <iterator>
|
2018-11-29 22:35:30 +05:00
|
|
|
#include <type_traits>
|
|
|
|
#include <functional>
|
|
|
|
#include <stdexcept>
|
|
|
|
#include <iostream>
|
|
|
|
#include <fstream>
|
|
|
|
#include <cstring>
|
|
|
|
#include <complex>
|
|
|
|
|
2018-12-05 18:20:24 +05:00
|
|
|
namespace ngcore
|
|
|
|
{
|
2018-11-29 22:35:30 +05:00
|
|
|
#if defined(__GNUC__)
|
|
|
|
inline bool likely (bool x) { return __builtin_expect((x), true); }
|
|
|
|
inline bool unlikely (bool x) { return __builtin_expect((x), false); }
|
|
|
|
#else
|
|
|
|
inline bool likely (bool x) { return x; }
|
|
|
|
inline bool unlikely (bool x) { return x; }
|
|
|
|
#endif
|
2018-12-05 18:20:24 +05:00
|
|
|
}
|
2018-11-29 22:35:30 +05:00
|
|
|
|
|
|
|
// own includes
|
2018-12-06 21:53:44 +05:00
|
|
|
#include "type_traits.hpp"
|
2018-11-29 22:35:30 +05:00
|
|
|
#include "basearchive.hpp"
|
2018-12-05 18:20:24 +05:00
|
|
|
#include "version.hpp"
|
2018-11-29 22:35:30 +05:00
|
|
|
#include "archive.hpp"
|
|
|
|
|
|
|
|
#endif // NG_CORE_HPP
|