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

namespace gsl
{

using zstring   = char*;
using czstring  = const char*;

template<typename T> using owner = T;

} // namespace gsl

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