refactor(Core): rename namespaces and macros to acore (#2454)

This commit is contained in:
Viste
2019-12-01 15:13:31 +03:00
committed by Francesco Borzì
parent e19e95e5d0
commit e22d78ecd6
278 changed files with 1292 additions and 1309 deletions

View File

@@ -4,8 +4,8 @@
* Copyright (C) 2005-2009 MaNGOS <http://getmangos.com/>
*/
#ifndef TRINITY_DEFINE_H
#define TRINITY_DEFINE_H
#ifndef ACORE_DEFINE_H
#define ACORE_DEFINE_H
#include <cstddef>
#include <cinttypes>
@@ -17,19 +17,19 @@
#define OS_WIN
#endif
#define TRINITY_LITTLEENDIAN 0
#define TRINITY_BIGENDIAN 1
#define ACORE_LITTLEENDIAN 0
#define ACORE_BIGENDIAN 1
#if !defined(TRINITY_ENDIAN)
#if !defined(ACORE_ENDIAN)
# if defined (ACE_BIG_ENDIAN)
# define TRINITY_ENDIAN TRINITY_BIGENDIAN
# define ACORE_ENDIAN ACORE_BIGENDIAN
# else //ACE_BYTE_ORDER != ACE_BIG_ENDIAN
# define TRINITY_ENDIAN TRINITY_LITTLEENDIAN
# define ACORE_ENDIAN ACORE_LITTLEENDIAN
# endif //ACE_BYTE_ORDER
#endif //TRINITY_ENDIAN
#endif //ACORE_ENDIAN
#if AC_PLATFORM == AC_PLATFORM_WINDOWS
# define TRINITY_PATH_MAX MAX_PATH
# define ACORE_PATH_MAX MAX_PATH
# ifndef DECLSPEC_NORETURN
# define DECLSPEC_NORETURN __declspec(noreturn)
# endif //DECLSPEC_NORETURN
@@ -37,18 +37,18 @@
# define DECLSPEC_DEPRECATED __declspec(deprecated)
# endif //DECLSPEC_DEPRECATED
#else //AC_PLATFORM != AC_PLATFORM_WINDOWS
# define TRINITY_PATH_MAX PATH_MAX
# define ACORE_PATH_MAX PATH_MAX
# define DECLSPEC_NORETURN
# define DECLSPEC_DEPRECATED
#endif //AC_PLATFORM
#if !defined(COREDEBUG)
# define TRINITY_INLINE inline
# define ACORE_INLINE inline
#else //COREDEBUG
# if !defined(TRINITY_DEBUG)
# define TRINITY_DEBUG
# endif //TRINITY_DEBUG
# define TRINITY_INLINE
# if !defined(ACORE_DEBUG)
# define ACORE_DEBUG
# endif //ACORE_DEBUG
# define ACORE_INLINE
#endif //!COREDEBUG
#if AC_COMPILER == AC_COMPILER_GNU
@@ -80,4 +80,4 @@ typedef std::uint32_t uint32;
typedef std::uint16_t uint16;
typedef std::uint8_t uint8;
#endif //TRINITY_DEFINE_H
#endif //ACORE_DEFINE_H