blob: 07926d09a383873a64a8b3f24289d148d869f1cb (
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
#ifndef _ASURA_BASE_CONFIG_H_
#define _ASURA_BASE_CONFIG_H_
#include "BuildConfigure.h"
#ifndef ASSERT
#ifdef NDEBUG
#define ASSERT(x) { false ? (void)(x) : (void)0; }
#else
#ifdef _WIN32
#define ASURA_DEBUG_BREAK() __debugbreak()
#else
#define ASURA_DEBUG_BREAK() raise(SIGTRAP)
#endif
#define ASSERT(x) do { const volatile bool asura_assert_b____ = !(x); if(asura_assert_b____) ASURA_DEBUG_BREAK(); } while (false)
#endif
#endif
#ifdef _WIN32
#define ASURA_FINAL final
#define ASURA_EXPORT __declspec(dllexport)
#define ASURA_IMPORT __declspec(dllimport)
#define ASURA_FORCE_INLINE __forceinline
#define ASURA_RESTRICT __restrict
#define ASURA_API ASURA_EXPORT
#define ASURA_ATTRIBUTE_USED
#define ASURA_ABSTRACT
#define ASURA_WINDOWS 1
#else
#define ASURA_FINAL final
#define ASURA_EXPORT __attribute__((visibility("default")))
#define ASURA_IMPORT
#define ASURA_FORCE_INLINE __attribute__((always_inline)) inline
#define ASURA_RESTRICT __restrict__
#define ASURA_ATTRIBUTE_USED __attribute__((used))
#define ASURA_ABSTRACT
#define ASURA_API ASURA_EXPORT
#endif
///
/// ƶָȨ
///
#define ASURA_MOVE
#define ASURA_DEBUG 0
#define ASURA_SDL_HOST 1
#define ASURA_LITTLE_ENDIAN 1
// չؼ
#define ASURA_THROW(ex) throw(ex) // ʾ׳쳣
#define ASURA_OUT
#define ASURA_REF
#endif
|