diff options
Diffstat (limited to 'deimos/core/base.h')
-rw-r--r-- | deimos/core/base.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/deimos/core/base.h b/deimos/core/base.h index 0669f07..0cc48b1 100644 --- a/deimos/core/base.h +++ b/deimos/core/base.h @@ -26,6 +26,14 @@ deimos_DEFAULT_COPY(TYPE); \
deimos_DEFAULT_MOVE(TYPE);
+namespace gsl
+{
+
+using zstring = char*;
+using czstring = const char*;
+
+} // namespace gsl
+
namespace deimos
{
@@ -42,6 +50,8 @@ using int64 = long long; using float32 = float;
using float64 = double;
+enum __attribute__((__may_alias__)) byte : uint8 {};
+
struct uint128
{
uint64 high;
@@ -52,11 +62,11 @@ struct uint128 struct SourceLocation
{
- const char* file;
+ gsl::czstring file;
int32 line;
constexpr SourceLocation( // NOLINT
- const char* file_ = __builtin_FILE(),
+ gsl::czstring file_ = __builtin_FILE(),
int32 line_ = __builtin_LINE()) :
file{file_},
line{line_}
|