TrinityCore
Loading...
Searching...
No Matches
Define.h File Reference
#include "CompilerDefs.h"
#include <cstddef>
#include <cinttypes>
#include <climits>
+ Include dependency graph for Define.h:

Go to the source code of this file.

Macros

#define TRINITY_LITTLEENDIAN   0
 
#define TRINITY_BIGENDIAN   1
 
#define TRINITY_ENDIAN   TRINITY_LITTLEENDIAN
 
#define TRINITY_PATH_MAX   PATH_MAX
 
#define TRINITY_INLINE   inline
 
#define ATTR_PRINTF(F, V)
 COREDEBUG.
 
#define TC_API_EXPORT
 
#define TC_API_IMPORT
 
#define TC_COMMON_API   TC_API_IMPORT
 
#define TC_PROTO_API   TC_API_IMPORT
 
#define TC_DATABASE_API   TC_API_IMPORT
 
#define TC_SHARED_API   TC_API_IMPORT
 
#define TC_GAME_API   TC_API_IMPORT
 
#define UI64FMTD   "%" PRIu64
 
#define UI64LIT(N)   UINT64_C(N)
 
#define SI64FMTD   "%" PRId64
 
#define SI64LIT(N)   INT64_C(N)
 
#define SZFMTD   "%" PRIuPTR
 
#define STRING_VIEW_FMT   "%.*s"
 
#define STRING_VIEW_FMT_ARG(str)   static_cast<int>((str).length()), (str).data()
 

Typedefs

typedef int64_t int64
 
typedef int32_t int32
 
typedef int16_t int16
 
typedef int8_t int8
 
typedef uint64_t uint64
 
typedef uint32_t uint32
 
typedef uint16_t uint16
 
typedef uint8_t uint8
 

Enumerations

enum  DBCFormer {
  FT_STRING = 's' , FT_STRING_NOT_LOCALIZED = 'S' , FT_FLOAT = 'f' , FT_INT = 'i' ,
  FT_BYTE = 'b' , FT_SHORT = 'h' , FT_LONG = 'l'
}
 

Macro Definition Documentation

◆ ATTR_PRINTF

#define ATTR_PRINTF (   F,
 
)

COREDEBUG.

Definition at line 79 of file Define.h.

◆ SI64FMTD

#define SI64FMTD   "%" PRId64

Definition at line 130 of file Define.h.

◆ SI64LIT

#define SI64LIT (   N)    INT64_C(N)

Definition at line 131 of file Define.h.

◆ STRING_VIEW_FMT

#define STRING_VIEW_FMT   "%.*s"

Definition at line 135 of file Define.h.

◆ STRING_VIEW_FMT_ARG

#define STRING_VIEW_FMT_ARG (   str)    static_cast<int>((str).length()), (str).data()

Definition at line 136 of file Define.h.

◆ SZFMTD

#define SZFMTD   "%" PRIuPTR

Definition at line 133 of file Define.h.

◆ TC_API_EXPORT

#define TC_API_EXPORT

Definition at line 93 of file Define.h.

◆ TC_API_IMPORT

#define TC_API_IMPORT

Definition at line 94 of file Define.h.

◆ TC_COMMON_API

#define TC_COMMON_API   TC_API_IMPORT

Definition at line 100 of file Define.h.

◆ TC_DATABASE_API

#define TC_DATABASE_API   TC_API_IMPORT

Definition at line 112 of file Define.h.

◆ TC_GAME_API

#define TC_GAME_API   TC_API_IMPORT

Definition at line 124 of file Define.h.

◆ TC_PROTO_API

#define TC_PROTO_API   TC_API_IMPORT

Definition at line 106 of file Define.h.

◆ TC_SHARED_API

#define TC_SHARED_API   TC_API_IMPORT

Definition at line 118 of file Define.h.

◆ TRINITY_BIGENDIAN

#define TRINITY_BIGENDIAN   1

Definition at line 50 of file Define.h.

◆ TRINITY_ENDIAN

#define TRINITY_ENDIAN   TRINITY_LITTLEENDIAN

Definition at line 56 of file Define.h.

◆ TRINITY_INLINE

#define TRINITY_INLINE   inline

Definition at line 68 of file Define.h.

◆ TRINITY_LITTLEENDIAN

#define TRINITY_LITTLEENDIAN   0

Definition at line 49 of file Define.h.

◆ TRINITY_PATH_MAX

#define TRINITY_PATH_MAX   PATH_MAX

Definition at line 64 of file Define.h.

◆ UI64FMTD

#define UI64FMTD   "%" PRIu64

Definition at line 127 of file Define.h.

◆ UI64LIT

#define UI64LIT (   N)    UINT64_C(N)

Definition at line 128 of file Define.h.

Typedef Documentation

◆ int16

typedef int16_t int16

Definition at line 140 of file Define.h.

◆ int32

typedef int32_t int32

Definition at line 139 of file Define.h.

◆ int64

typedef int64_t int64

Definition at line 138 of file Define.h.

◆ int8

typedef int8_t int8

Definition at line 141 of file Define.h.

◆ uint16

typedef uint16_t uint16

Definition at line 144 of file Define.h.

◆ uint32

typedef uint32_t uint32

Definition at line 143 of file Define.h.

◆ uint64

typedef uint64_t uint64

Definition at line 142 of file Define.h.

◆ uint8

typedef uint8_t uint8

Definition at line 145 of file Define.h.

Enumeration Type Documentation

◆ DBCFormer

enum DBCFormer
Enumerator
FT_STRING 
FT_STRING_NOT_LOCALIZED 
FT_FLOAT 
FT_INT 
FT_BYTE 
FT_SHORT 
FT_LONG 

Definition at line 147 of file Define.h.

148{
149 FT_STRING = 's', // LocalizedString*
150 FT_STRING_NOT_LOCALIZED = 'S', // char*
151 FT_FLOAT = 'f', // float
152 FT_INT = 'i', // uint32
153 FT_BYTE = 'b', // uint8
154 FT_SHORT = 'h', // uint16
155 FT_LONG = 'l' // uint64
156};
@ FT_FLOAT
Definition: Define.h:151
@ FT_SHORT
Definition: Define.h:154
@ FT_STRING
Definition: Define.h:149
@ FT_INT
Definition: Define.h:152
@ FT_STRING_NOT_LOCALIZED
Definition: Define.h:150
@ FT_BYTE
Definition: Define.h:153
@ FT_LONG
Definition: Define.h:155