add gnu attributes

v1
Brett 2024-06-29 14:05:03 -04:00
parent cdb91d8007
commit 1328095603
3 changed files with 6 additions and 2 deletions

View File

@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 3.20) cmake_minimum_required(VERSION 3.20)
include(cmake/color.cmake) include(cmake/color.cmake)
set(BLT_VERSION 0.17.20) set(BLT_VERSION 0.17.21)
set(BLT_TEST_VERSION 0.0.1) set(BLT_TEST_VERSION 0.0.1)
set(BLT_TARGET BLT) set(BLT_TARGET BLT)

View File

@ -94,12 +94,16 @@ namespace blt
#if defined(__GNUC__) || defined(__llvm__) #if defined(__GNUC__) || defined(__llvm__)
#define BLT_ATTRIB_NO_INLINE __attribute__ ((noinline)) #define BLT_ATTRIB_NO_INLINE __attribute__ ((noinline))
#define BLT_ATTRIB_CONST __attribute__((const))
#define BLT_ATTRIB_PURE __attribute__((pure))
#else #else
#if defined(_MSC_VER) && !defined(__INTEL_COMPILER) #if defined(_MSC_VER) && !defined(__INTEL_COMPILER)
#define BLT_ATTRIB_NO_INLINE __declspec(noinline) #define BLT_ATTRIB_NO_INLINE __declspec(noinline)
#else #else
#define BLT_ATTRIB_NO_INLINE #define BLT_ATTRIB_NO_INLINE
#endif #endif
#define BLT_ATTRIB_CONST
#define BLT_ATTRIB_PURE
#endif #endif
template<typename T> template<typename T>

@ -1 +1 @@
Subproject commit 10368163ab1f4367d2f0685b5928b1c973ebd1ec Subproject commit d88c5e15079047777b418132ece5879e7c9aaa2b