-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathtypes.h
More file actions
35 lines (29 loc) · 912 Bytes
/
types.h
File metadata and controls
35 lines (29 loc) · 912 Bytes
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
32
33
34
35
#ifndef __TYPES_H__
#define __TYPES_H__
#include <unistd.h>
#include <sys/types.h>
#include <string>
#include <vector>
#include <queue>
#include <map>
#include <set>
using namespace std;
#ifdef DEBUG
#include <time.h>
#include <stdio.h>
#define TRACE(fmt, ...) printf("[Time:%d]" fmt " -- [%s:%d]\n", (int)time(NULL), ## __VA_ARGS__, __FILE__, __LINE__)
#else
#define TRACE(fmt, ...)
#endif
typedef signed char SInt8;
typedef unsigned char UInt8;
typedef signed short SInt16;
typedef unsigned short UInt16;
typedef signed int SInt32;
typedef unsigned int UInt32;
typedef signed long long SInt64;
typedef unsigned long long UInt64;
typedef vector<UInt32> UInt32Vector;
typedef vector<string> StringVector;
typedef map<string, string> StringMap;
#endif