少年修仙传客户端基础资源
hch
2024-04-01 d01413b00ef631ac20347716b23818b0b811f65f
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
/**
 * \file
 */
 
#ifndef __MONO_PUBLIB_H__
#define __MONO_PUBLIB_H__
 
/* 
 * Minimal general purpose header for use in public mono header files.
 * We can't include config.h, so we use compiler-specific preprocessor
 * directives where needed.
 */
 
#ifdef  __cplusplus
#define MONO_BEGIN_DECLS  extern "C" {
#define MONO_END_DECLS    }
#else
#define MONO_BEGIN_DECLS
#define MONO_END_DECLS
#endif
 
MONO_BEGIN_DECLS
 
/* VS 2010 and later have stdint.h */
#if defined(_MSC_VER)
 
#if _MSC_VER < 1600
 
typedef __int8            int8_t;
typedef unsigned __int8        uint8_t;
typedef __int16            int16_t;
typedef unsigned __int16    uint16_t;
typedef __int32            int32_t;
typedef unsigned __int32    uint32_t;
typedef __int64            int64_t;
typedef unsigned __int64    uint64_t;
 
#else
 
#include <stdint.h>
 
#endif
 
#define MONO_API_EXPORT __declspec(dllexport)
#define MONO_API_IMPORT __declspec(dllimport)
 
#else
 
#include <stdint.h>
 
#ifdef __GNUC__
#define MONO_API_EXPORT __attribute__ ((__visibility__ ("default")))
#else
#define MONO_API_EXPORT
#endif
#define MONO_API_IMPORT
 
#endif /* end of compiler-specific stuff */
 
#include <stdlib.h>
 
#if defined(MONO_DLL_EXPORT)
    #define MONO_API MONO_API_EXPORT
#elif defined(MONO_DLL_IMPORT)
    #define MONO_API MONO_API_IMPORT
#else
    #define MONO_API
#endif
 
#define UNITY_MONO_API MONO_API
 
typedef int32_t        mono_bool;
typedef uint8_t        mono_byte;
typedef uint16_t    mono_unichar2;
typedef uint32_t    mono_unichar4;
 
typedef void    (*MonoFunc)    (void* data, void* user_data);
typedef void    (*MonoHFunc)    (void* key, void* value, void* user_data);
 
MONO_API void mono_free (void *);
 
#define MONO_ALLOCATOR_VTABLE_VERSION 1
 
typedef struct {
    int version;
    void *(*malloc)      (size_t size);
    void *(*realloc)     (void *mem, size_t count);
    void (*free)        (void *mem);
    void *(*calloc)      (size_t count, size_t size);
} MonoAllocatorVTable;
 
MONO_API mono_bool
mono_set_allocator_vtable (MonoAllocatorVTable* vtable);
 
 
#define MONO_CONST_RETURN const
 
/*
 * When embedding, you have to define MONO_ZERO_LEN_ARRAY before including any
 * other Mono header file if you use a different compiler from the one used to
 * build Mono.
 */
#ifndef MONO_ZERO_LEN_ARRAY
#ifdef __GNUC__
#define MONO_ZERO_LEN_ARRAY 0
#else
#define MONO_ZERO_LEN_ARRAY 1
#endif
#endif
 
#if defined (MONO_INSIDE_RUNTIME)
 
#if defined (__CENTRINEL__)
/* Centrinel is an analyzer that warns about raw pointer to managed objects
 * inside Mono.
 */
#define MONO_RT_MANAGED_ATTR __CENTRINEL_MANAGED_ATTR
#define MONO_RT_CENTRINEL_SUPPRESS __CENTRINEL_SUPPRESS_ATTR(1)
#else
#define MONO_RT_MANAGED_ATTR
#define MONO_RT_CENTRINEL_SUPPRESS
#endif
 
#if defined (__clang__)
#define MONO_RT_EXTERNAL_ONLY \
    __attribute__ ((__unavailable__ ("The mono runtime must not call this function"))) \
    MONO_RT_CENTRINEL_SUPPRESS
#elif defined (__GNUC__)
#define MONO_RT_EXTERNAL_ONLY \
    __attribute__ ((__error__ ("The mono runtime must not call this function"))) \
    MONO_RT_CENTRINEL_SUPPRESS
#else
#define MONO_RT_EXTERNAL_ONLY MONO_RT_CENTRINEL_SUPPRESS
#endif /* __clang__ */
 
#else
#define MONO_RT_EXTERNAL_ONLY
#define MONO_RT_MANAGED_ATTR
#endif /* MONO_INSIDE_RUNTIME */
 
#ifdef __GNUC__
#define _MONO_DEPRECATED __attribute__ ((__deprecated__))
#elif defined (_MSC_VER)
#define _MONO_DEPRECATED __declspec (deprecated)
#else
#define _MONO_DEPRECATED
#endif
 
#define MONO_DEPRECATED MONO_API MONO_RT_EXTERNAL_ONLY _MONO_DEPRECATED
 
MONO_END_DECLS
 
#endif /* __MONO_PUBLIB_H__ */