TrinityCore
Loading...
Searching...
No Matches
CompilerDefs.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define TRINITY_PLATFORM_WINDOWS   0
 
#define TRINITY_PLATFORM_UNIX   1
 
#define TRINITY_PLATFORM_APPLE   2
 
#define TRINITY_PLATFORM   TRINITY_PLATFORM_UNIX
 
#define TRINITY_COMPILER_MICROSOFT_FLAG(on)   ((on) << 0)
 
#define TRINITY_COMPILER_GCC_FLAG(on)   ((on) << 1)
 
#define TRINITY_COMPILER_CLANG_FLAG(on)   ((on) << 2)
 
#define TRINITY_COMPILER_INTEL_FLAG(on)   ((on) << 3)
 
#define TRINITY_COMPILER_MICROSOFT_DETECTED   0
 
#define TRINITY_COMPILER_GCC_DETECTED   0
 
#define TRINITY_COMPILER_CLANG_DETECTED   0
 
#define TRINITY_COMPILER_INTEL_DETECTED   0
 
#define TRINITY_COMPILER
 
#define TRINITY_COMPILER_IS(compiler)   (((TRINITY_COMPILER) & (compiler)) != 0)
 
#define TRINITY_COMPILER_IS_MICROSOFT   TRINITY_COMPILER_IS(TRINITY_COMPILER_MICROSOFT_FLAG(1))
 
#define TRINITY_COMPILER_IS_GCC   TRINITY_COMPILER_IS(TRINITY_COMPILER_GCC_FLAG(1))
 
#define TRINITY_COMPILER_IS_CLANG   TRINITY_COMPILER_IS(TRINITY_COMPILER_CLANG_FLAG(1))
 
#define TRINITY_COMPILER_IS_INTEL   TRINITY_COMPILER_IS(TRINITY_COMPILER_INTEL_FLAG(1))
 

Macro Definition Documentation

◆ TRINITY_COMPILER

#define TRINITY_COMPILER
Value:
#define TRINITY_COMPILER_GCC_DETECTED
#define TRINITY_COMPILER_MICROSOFT_DETECTED
#define TRINITY_COMPILER_INTEL_DETECTED
#define TRINITY_COMPILER_MICROSOFT_FLAG(on)
#define TRINITY_COMPILER_CLANG_DETECTED
#define TRINITY_COMPILER_GCC_FLAG(on)
#define TRINITY_COMPILER_INTEL_FLAG(on)
#define TRINITY_COMPILER_CLANG_FLAG(on)

Definition at line 62 of file CompilerDefs.h.

◆ TRINITY_COMPILER_CLANG_DETECTED

#define TRINITY_COMPILER_CLANG_DETECTED   0

Definition at line 53 of file CompilerDefs.h.

◆ TRINITY_COMPILER_CLANG_FLAG

#define TRINITY_COMPILER_CLANG_FLAG (   on)    ((on) << 2)

Definition at line 35 of file CompilerDefs.h.

◆ TRINITY_COMPILER_GCC_DETECTED

#define TRINITY_COMPILER_GCC_DETECTED   0

Definition at line 47 of file CompilerDefs.h.

◆ TRINITY_COMPILER_GCC_FLAG

#define TRINITY_COMPILER_GCC_FLAG (   on)    ((on) << 1)

Definition at line 34 of file CompilerDefs.h.

◆ TRINITY_COMPILER_INTEL_DETECTED

#define TRINITY_COMPILER_INTEL_DETECTED   0

Definition at line 59 of file CompilerDefs.h.

◆ TRINITY_COMPILER_INTEL_FLAG

#define TRINITY_COMPILER_INTEL_FLAG (   on)    ((on) << 3)

Definition at line 36 of file CompilerDefs.h.

◆ TRINITY_COMPILER_IS

#define TRINITY_COMPILER_IS (   compiler)    (((TRINITY_COMPILER) & (compiler)) != 0)

Definition at line 72 of file CompilerDefs.h.

◆ TRINITY_COMPILER_IS_CLANG

#define TRINITY_COMPILER_IS_CLANG   TRINITY_COMPILER_IS(TRINITY_COMPILER_CLANG_FLAG(1))

Definition at line 75 of file CompilerDefs.h.

◆ TRINITY_COMPILER_IS_GCC

#define TRINITY_COMPILER_IS_GCC   TRINITY_COMPILER_IS(TRINITY_COMPILER_GCC_FLAG(1))

Definition at line 74 of file CompilerDefs.h.

◆ TRINITY_COMPILER_IS_INTEL

#define TRINITY_COMPILER_IS_INTEL   TRINITY_COMPILER_IS(TRINITY_COMPILER_INTEL_FLAG(1))

Definition at line 76 of file CompilerDefs.h.

◆ TRINITY_COMPILER_IS_MICROSOFT

#define TRINITY_COMPILER_IS_MICROSOFT   TRINITY_COMPILER_IS(TRINITY_COMPILER_MICROSOFT_FLAG(1))

Definition at line 73 of file CompilerDefs.h.

◆ TRINITY_COMPILER_MICROSOFT_DETECTED

#define TRINITY_COMPILER_MICROSOFT_DETECTED   0

Definition at line 41 of file CompilerDefs.h.

◆ TRINITY_COMPILER_MICROSOFT_FLAG

#define TRINITY_COMPILER_MICROSOFT_FLAG (   on)    ((on) << 0)

Definition at line 33 of file CompilerDefs.h.

◆ TRINITY_PLATFORM

#define TRINITY_PLATFORM   TRINITY_PLATFORM_UNIX

Definition at line 30 of file CompilerDefs.h.

◆ TRINITY_PLATFORM_APPLE

#define TRINITY_PLATFORM_APPLE   2

Definition at line 23 of file CompilerDefs.h.

◆ TRINITY_PLATFORM_UNIX

#define TRINITY_PLATFORM_UNIX   1

Definition at line 22 of file CompilerDefs.h.

◆ TRINITY_PLATFORM_WINDOWS

#define TRINITY_PLATFORM_WINDOWS   0

Definition at line 21 of file CompilerDefs.h.