summaryrefslogtreecommitdiff
path: root/src/typedef.h
blob: 5cbc038e7f5b7eab89c75a9095f8521a3193ffeb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
//|_   _   _.     _  ._  |_   _.  _ |
//| | (/_ (_| \/ (/_ | | | | (_| (_ |<

#pragma once
#ifdef __cplusplus
#include <vector>
template<typename t>
using VECTOR = std::vector<t>;
#endif

typedef char      I8;
typedef short     I16;
typedef int       I32;
typedef long long I64;

typedef unsigned char      U8;
typedef unsigned short     U16;
typedef unsigned int       U32;
typedef unsigned long long U64;

typedef float  F32;
typedef double F64;

#ifdef X64
typedef unsigned long long PTR;
#else
typedef unsigned long PTR;
#endif

#define assert( x ) if( !x ) con_set_assert( "ASSERTION FAILED: %s() (line: %d)", __func__, __LINE__ )
#define pause() system( "pause" )