TexGen
ShinyPrereqs.h
Go to the documentation of this file.
1/*
2The zlib/libpng License
3
4Copyright (c) 2007 Aidin Abedi (www.*)
5
6This software is provided 'as-is', without any express or implied warranty. In no event will
7the authors be held liable for any damages arising from the use of this software.
8
9Permission is granted to anyone to use this software for any purpose, including commercial
10applications, and to alter it and redistribute it freely, subject to the following
11restrictions:
12
13 1. The origin of this software must not be misrepresented; you must not claim that
14 you wrote the original software. If you use this software in a product,
15 an acknowledgment in the product documentation would be appreciated but is
16 not required.
17
18 2. Altered source versions must be plainly marked as such, and must not be
19 misrepresented as being the original software.
20
21 3. This notice may not be removed or altered from any source distribution.
22*/
23
24#ifndef SHINY_PREREQS_H
25#define SHINY_PREREQS_H
26
27#include "ShinyConfig.h"
28
29#if SHINY_PLATFORM == SHINY_PLATFORM_POSIX
30#include <sys/types.h>
31#endif
32
33namespace Shiny {
34
35
36//-----------------------------------------------------------------------------
37
38#if SHINY_PROFILER == TRUE
39 struct ProfileNode;
40 struct ProfileZone;
41
44#endif
45
46
47//-----------------------------------------------------------------------------
48
49
50#if SHINY_COMPILER == SHINY_COMPILER_MSVC
51# define SHINY_INLINE __forceinline
52# define SHINY_UNUSED
53
54#elif SHINY_PLATFORM == SHINY_COMPILER_GNUC
55# define SHINY_INLINE __inline
56# define SHINY_UNUSED __attribute__ ((unused))
57
58#elif SHINY_PLATFORM == SHINY_COMPILER_OTHER
59# define SHINY_INLINE inline
60# define SHINY_UNUSED
61#endif
62
63//-----------------------------------------------------------------------------
64
65#if SHINY_COMPILER == SHINY_COMPILER_MSVC
66 typedef int int32_t;
67 typedef unsigned int uint32_t;
68
69 typedef __int64 int64_t;
70 typedef unsigned __int64 uint64_t;
71
72#elif defined(__CYGWIN__)
73 typedef u_int32_t uint32_t;
74 typedef u_int64_t uint64_t;
75#endif
76
77 typedef uint64_t tick_t;
78
79} // namespace Shiny
80
81#endif // ifndef SHINY_*_H
uint64_t tick_t
Definition: ShinyPrereqs.h:77
ProfileNode * ProfileNodeTable
Definition: ShinyPrereqs.h:43
ProfileNode * ProfileNodeCache
Definition: ShinyPrereqs.h:40