summaryrefslogtreecommitdiff
path: root/deimos/core/gsl.h
blob: 1270fa4ac44c216e7c6f83db27c3e018264f1732 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#pragma once

namespace gsl
{

using zstring   = char*;
using czstring  = const char*;
using wzstring  = wchar_t*;
using cwzstring = const wchar_t*;

template<typename T> using owner = T;

} // namespace gsl

#define Expects(EXPR) do { if (EXPR) {} else { __builtin_trap(); } } while (0)
#define Ensures(EXPR) do { if (EXPR) {} else { __builtin_trap(); } } while (0)