Types.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2006-2011, SRI International (R)
3  *
4  * This program is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU Lesser General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public License
15  * along with this program. If not, see <http://www.gnu.org/licenses/>.
16  */
17 
18 #pragma once
19 
20 #ifndef __OpenKarto_Types_h__
21 #define __OpenKarto_Types_h__
22 
23 #include <assert.h>
24 
25 #include <cstddef>
26 
31 
32 #if defined(_MSC_VER)
33 
37  typedef signed __int8 kt_int8s;
38 
42  typedef unsigned __int8 kt_int8u;
43 
47  typedef signed __int16 kt_int16s;
48 
52  typedef unsigned __int16 kt_int16u;
53 
57  typedef signed __int32 kt_int32s;
58 
62  typedef unsigned __int32 kt_int32u;
63 
67  typedef signed __int64 kt_int64s;
68 
72  typedef unsigned __int64 kt_int64u;
73 
77  typedef std::size_t kt_size_t;
78 
79 #else
80 
81  #include <stdint.h>
82 
86  typedef int8_t kt_int8s;
87 
91  typedef uint8_t kt_int8u;
92 
96  typedef int16_t kt_int16s;
97 
101  typedef uint16_t kt_int16u;
102 
106  typedef int32_t kt_int32s;
107 
111  typedef uint32_t kt_int32u;
112 
113 #if defined(__LP64__)
114 
117  typedef signed long kt_int64s;
118 
122  typedef unsigned long kt_int64u;
123 #else
124 
127  typedef signed long long kt_int64s;
128 
132  typedef unsigned long long kt_int64u;
133 #endif
134 
138  typedef std::size_t kt_size_t;
139 
140 #endif
141 
145 typedef bool kt_bool;
146 
150 typedef char kt_char;
151 
155 typedef float kt_float;
156 
160 typedef double kt_double;
161 
166 
171 
174 #endif // __OpenKarto_Types_h__
bool kt_bool
Definition: Types.h:145
std::size_t kt_size_t
Definition: Types.h:138
int16_t kt_int16s
Definition: Types.h:96
char kt_char
Definition: Types.h:150
float kt_float
Definition: Types.h:155
uint8_t kt_int8u
Definition: Types.h:91
uint32_t kt_int32u
Definition: Types.h:111
kt_int64s kt_tick
Definition: Types.h:170
kt_int32u kt_objecttype
Definition: Types.h:165
int8_t kt_int8s
Definition: Types.h:86
int32_t kt_int32s
Definition: Types.h:106
double kt_double
Definition: Types.h:160
signed long long kt_int64s
Definition: Types.h:127
uint16_t kt_int16u
Definition: Types.h:101
unsigned long long kt_int64u
Definition: Types.h:132


nav2d_karto
Author(s): Sebastian Kasperski
autogenerated on Tue Nov 7 2017 06:02:36