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. More...
 
#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.

◆ SI64FMTD

#define SI64FMTD   "%" PRId64

◆ SI64LIT

#define SI64LIT (   N)    INT64_C(N)

◆ STRING_VIEW_FMT

#define STRING_VIEW_FMT   "%.*s"

◆ STRING_VIEW_FMT_ARG

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

◆ SZFMTD

#define SZFMTD   "%" PRIuPTR

◆ TC_API_EXPORT

#define TC_API_EXPORT

◆ TC_API_IMPORT

#define TC_API_IMPORT

◆ TC_COMMON_API

#define TC_COMMON_API   TC_API_IMPORT

◆ TC_DATABASE_API

#define TC_DATABASE_API   TC_API_IMPORT

◆ TC_GAME_API

#define TC_GAME_API   TC_API_IMPORT

◆ TC_PROTO_API

#define TC_PROTO_API   TC_API_IMPORT

◆ TC_SHARED_API

#define TC_SHARED_API   TC_API_IMPORT

◆ TRINITY_BIGENDIAN

#define TRINITY_BIGENDIAN   1

◆ TRINITY_ENDIAN

#define TRINITY_ENDIAN   TRINITY_LITTLEENDIAN

◆ TRINITY_INLINE

#define TRINITY_INLINE   inline

◆ TRINITY_LITTLEENDIAN

#define TRINITY_LITTLEENDIAN   0

◆ TRINITY_PATH_MAX

#define TRINITY_PATH_MAX   PATH_MAX

◆ UI64FMTD

#define UI64FMTD   "%" PRIu64

◆ UI64LIT

#define UI64LIT (   N)    UINT64_C(N)

Typedef Documentation

◆ int16

typedef int16_t int16

◆ int32

typedef int32_t int32

◆ int64

typedef int64_t int64

◆ int8

typedef int8_t int8

◆ uint16

typedef uint16_t uint16

◆ uint32

typedef uint32_t uint32

◆ uint64

typedef uint64_t uint64

◆ uint8

typedef uint8_t uint8

Enumeration Type Documentation

◆ DBCFormer

enum DBCFormer
Enumerator
FT_STRING 
FT_STRING_NOT_LOCALIZED 
FT_FLOAT 
FT_INT 
FT_BYTE 
FT_SHORT 
FT_LONG 
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