Skip to content

Commit

Permalink
Move XR_NOEXCEPT macro to Compiler.inl
Browse files Browse the repository at this point in the history
  • Loading branch information
Xottab-DUTY committed Jan 6, 2018
1 parent 3043700 commit a1d4c52
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 15 deletions.
8 changes: 8 additions & 0 deletions src/Common/Compiler.inl
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,11 @@
#endif

#define UNUSED(...) (void)(__VA_ARGS__)

#ifndef _CPPUNWIND//def NDEBUG
#define XR_NOEXCEPT throw()
#define XR_NOEXCEPT_OP(x)
#else
#define XR_NOEXCEPT noexcept
#define XR_NOEXCEPT_OP(x) noexcept(x)
#endif
11 changes: 0 additions & 11 deletions src/xrCore/cpuid.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,6 @@
#ifndef _INC_CPUID
#define _INC_CPUID

#ifndef xrCoreH
// If xrCore.h is not included then compilation fails
// This fixes it.
// XXX: Find a better solution
#ifdef NDEBUG
#define XR_NOEXCEPT throw()
#else
#define XR_NOEXCEPT noexcept
#endif
#endif

enum class CpuFeature : u32
{
Mmx = 0x0001,
Expand Down
4 changes: 0 additions & 4 deletions src/xrCore/xrCore.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,8 @@
#ifdef NDEBUG
#define XRAY_EXCEPTIONS 0
#define LUABIND_NO_EXCEPTIONS
#define XR_NOEXCEPT throw()
#define XR_NOEXCEPT_OP(x)
#else
#define XRAY_EXCEPTIONS 1
#define XR_NOEXCEPT noexcept
#define XR_NOEXCEPT_OP(x) noexcept(x)
#endif

#if !defined(DEBUG) && (defined(_DEBUG) || defined(MIXED))
Expand Down

0 comments on commit a1d4c52

Please sign in to comment.