mirror of
https://github.com/bkaradzic/bx.git
synced 2026-02-17 20:52:37 +01:00
Cleanup.
This commit is contained in:
@@ -16,19 +16,13 @@ namespace bx
|
||||
char(&CountOfRequireArrayArgumentT(const Ty(&)[Num]))[Num];
|
||||
|
||||
template<bool>
|
||||
inline constexpr bool isEnabled()
|
||||
BX_FORCE_INLINE constexpr bool isEnabled()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
template<class Ty>
|
||||
inline constexpr bool isTriviallyCopyable()
|
||||
{
|
||||
return __is_trivially_copyable(Ty);
|
||||
}
|
||||
|
||||
template<>
|
||||
inline constexpr bool isEnabled<false>()
|
||||
BX_FORCE_INLINE constexpr bool isEnabled<false>()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
@@ -38,6 +32,12 @@ namespace bx
|
||||
return _x;
|
||||
}
|
||||
|
||||
template<class Ty>
|
||||
inline constexpr bool isTriviallyCopyable()
|
||||
{
|
||||
return __is_trivially_copyable(Ty);
|
||||
}
|
||||
|
||||
template<typename Ty>
|
||||
inline void swap(Ty& _a, Ty& _b)
|
||||
{
|
||||
|
||||
@@ -3,11 +3,13 @@
|
||||
* License: https://github.com/bkaradzic/bx#license-bsd-2-clause
|
||||
*/
|
||||
|
||||
#ifndef BX_H_HEADER_GUARD
|
||||
# error "Do not include macros.h directly #include <bx/bx.h> instead."
|
||||
#endif // BX_H_HEADER_GUARD
|
||||
|
||||
#ifndef BX_MACROS_H_HEADER_GUARD
|
||||
#define BX_MACROS_H_HEADER_GUARD
|
||||
|
||||
#include "bx.h"
|
||||
|
||||
///
|
||||
#if BX_COMPILER_MSVC
|
||||
// Workaround MSVS bug...
|
||||
|
||||
Reference in New Issue
Block a user