Fray Engine
Loading...
Searching...
No Matches
types.hpp
Go to the documentation of this file.
1#ifndef _FRAY_TYPES_HPP_
2#define _FRAY_TYPES_HPP_
3
4#include <cstdint>
5
9#if defined(_WIN32) || defined(_WIN64)
10 #define FRAY_WINDOWS
11#elif defined(__APPLE__) || defined(__MACH__)
12 #define FRAY_MAC
13#elif defined(__linux__)
14 #define FRAY_LINUX
15#else
16 #define FRAY_UNKNOWN_OS
17#endif
18
20typedef void F_void;
22typedef bool F_bool;
24typedef char F_char;
26typedef unsigned char F_uchar;
28typedef int16_t F_short;
30typedef uint16_t F_ushort;
32typedef int32_t F_long;
34typedef uint32_t F_ulong;
36typedef float F_float;
38typedef int64_t F_longlong;
40typedef uint64_t F_ulonglong;
42typedef double F_double;
43
44// String types
45#ifdef FRAY_WINDOWS
47 typedef wchar_t F_wchar;
49 typedef wchar_t* F_wstring;
50#else
52 typedef char F_wchar;
54 typedef char* F_wstring;
55#endif
56
57#endif
int64_t F_longlong
Signed 64-bit integer.
Definition types.hpp:38
uint64_t F_ulonglong
Unsigned 64-bit integer.
Definition types.hpp:40
uint16_t F_ushort
Unsigned 16-bit integer (used for ports).
Definition types.hpp:30
char * F_wstring
Platform C string pointer: wchar_t* on Windows, char* elsewhere.
Definition types.hpp:54
int32_t F_long
Signed 32-bit integer (also the base of F_err).
Definition types.hpp:32
int16_t F_short
Signed 16-bit integer.
Definition types.hpp:28
double F_double
64-bit floating point.
Definition types.hpp:42
unsigned char F_uchar
Alias for unsigned char (a byte).
Definition types.hpp:26
uint32_t F_ulong
Unsigned 32-bit integer.
Definition types.hpp:34
void F_void
Alias for void.
Definition types.hpp:20
bool F_bool
Alias for bool.
Definition types.hpp:22
char F_char
Alias for char.
Definition types.hpp:24
float F_float
32-bit floating point.
Definition types.hpp:36
char F_wchar
Platform wide character: wchar_t on Windows, char elsewhere.
Definition types.hpp:52