summaryrefslogtreecommitdiffhomepage
path: root/compat/defs.hpp
blob: cc23802209e76ec3c791437be53a6f4ad72d024b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#pragma once
#include <cstddef>
#include <type_traits>

namespace Magnum::Examples {

using size_t = std::size_t;
using ssize_t = std::make_signed_t<std::size_t>;

} // namespace Magnum::Examples

#ifdef _MSC_VER
#   define FUNCTION_NAME __FUNCSIG__
#else
#   define FUNCTION_NAME __PRETTY_FUNCTION__
#endif

#define progn(...) [&]{__VA_ARGS__;}()