libostd/octa/types.h

43 lines
797 B
C
Raw Normal View History

2015-06-08 01:55:08 +02:00
/* Core type aliases for OctaSTD.
2015-04-13 23:25:31 +02:00
*
* This file is part of OctaSTD. See COPYING.md for futher information.
*/
#ifndef OCTA_TYPES_H
#define OCTA_TYPES_H
#include <stdint.h>
#include <stddef.h>
2015-04-13 23:25:31 +02:00
namespace octa {
2015-06-08 01:55:08 +02:00
using schar = signed char;
using uchar = unsigned char;
using ushort = unsigned short;
using uint = unsigned int;
using ulong = unsigned long;
using ullong = unsigned long long;
using llong = long long;
2015-04-14 02:12:00 +02:00
2015-06-08 01:55:08 +02:00
using ldouble = long double;
2015-06-04 00:01:23 +02:00
2015-06-08 02:38:44 +02:00
using Nullptr = decltype(nullptr);
#if defined(__CLANG_MAX_ALIGN_T_DEFINED) || defined(_GCC_MAX_ALIGN_T)
2015-06-08 02:38:44 +02:00
using MaxAlign = ::max_align_t;
#else
2015-06-08 02:38:44 +02:00
using MaxAlign = long double;
#endif
2015-06-04 00:01:23 +02:00
2015-04-13 23:25:31 +02:00
}
2015-04-24 19:51:35 +02:00
using octa::schar;
using octa::uchar;
using octa::ushort;
using octa::uint;
using octa::ulong;
using octa::ullong;
using octa::llong;
using octa::ldouble;
2015-04-13 23:25:31 +02:00
#endif