diff options
author | Karl Berry <karl@freefriends.org> | 2021-01-02 16:31:31 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-01-02 16:31:31 +0000 |
commit | 6457cd3f6e21e23e21db6dafff021d17f5457567 (patch) | |
tree | 08f169333e47c5fc1c50e828cf3a0f50bdf9b508 /Build/source/utils/asymptote/memory.h | |
parent | dc2504a4c02af0ec2fff00e6b833c6143a06b4cd (diff) |
asy 2.68 sources
git-svn-id: svn://tug.org/texlive/trunk@57291 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/asymptote/memory.h')
-rw-r--r-- | Build/source/utils/asymptote/memory.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/Build/source/utils/asymptote/memory.h b/Build/source/utils/asymptote/memory.h index cf6f8f2084b..a201f5bd4f5 100644 --- a/Build/source/utils/asymptote/memory.h +++ b/Build/source/utils/asymptote/memory.h @@ -42,9 +42,9 @@ #ifdef __DECCXX_LIBCXX_RH70 #define CONST #else -#define CONST const +#define CONST const #endif - + #ifdef USEGC #define GC_THREADS @@ -107,8 +107,8 @@ inline void* operator new(size_t size, GCPlacement) { } inline void* operator new[](size_t size, GCPlacement) { - return operator new(size); -} + return operator new(size); + } template<class T> struct GC_type_traits {}; @@ -155,15 +155,15 @@ GC_CONTAINER(multimap); #undef GC_CONTAINER #ifndef NOHASH -#define GC_CONTAINER(KIND) \ - template <typename Key, typename T, \ - typename Hash = EXT::hash<Key>, \ - typename Eq = std::equal_to<Key> > \ - struct KIND : public \ - EXT::KIND<Key,T,Hash,Eq,PAIR_ALLOC>, public gc { \ - KIND() : EXT::KIND<Key,T,Hash,Eq,PAIR_ALLOC> () {} \ - KIND(size_t n) \ - : EXT::KIND<Key,T,Hash,Eq,PAIR_ALLOC> (n) {} \ +#define GC_CONTAINER(KIND) \ + template <typename Key, typename T, \ + typename Hash = EXT::hash<Key>, \ + typename Eq = std::equal_to<Key> > \ + struct KIND : public \ + EXT::KIND<Key,T,Hash,Eq,PAIR_ALLOC>, public gc { \ + KIND() : EXT::KIND<Key,T,Hash,Eq,PAIR_ALLOC> () {} \ + KIND(size_t n) \ + : EXT::KIND<Key,T,Hash,Eq,PAIR_ALLOC> (n) {} \ } GC_CONTAINER(unordered_map); |