diff options
author | Norbert Preining <norbert@preining.info> | 2020-08-07 03:02:55 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2020-08-07 03:02:55 +0000 |
commit | 3710c23789342d9d88783cbe9ad23eb5263a7c33 (patch) | |
tree | 1c40b2bfb9f6b652f7877ad0991f5d6b44391154 /graphics/asymptote/memory.h | |
parent | d99fea72e367e8d4d2809b43b3b0206b1bb526b8 (diff) |
CTAN sync 202008070302
Diffstat (limited to 'graphics/asymptote/memory.h')
-rw-r--r-- | graphics/asymptote/memory.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/graphics/asymptote/memory.h b/graphics/asymptote/memory.h index cf6f8f2084..a201f5bd4f 100644 --- a/graphics/asymptote/memory.h +++ b/graphics/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); |