diff options
author | 2020-04-25 21:26:53 +0200 | |
---|---|---|
committer | 2020-04-26 01:35:31 +0200 | |
commit | 0cf99a5310d14acec93f12eb0434a2253e77917b (patch) | |
tree | 69ed3f5abe0f3ccade35d930b7f0dc4d34fb9601 /src/lib/netlist/plib/pmempool.h | |
parent | 462943bf9e24b842de5881883f3f2c65d4b29df2 (diff) |
netlist: rename some macros. (nw)
Rename COPYASSIGN* and friends to PCOPYASSIGN*.
Diffstat (limited to 'src/lib/netlist/plib/pmempool.h')
-rw-r--r-- | src/lib/netlist/plib/pmempool.h | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/lib/netlist/plib/pmempool.h b/src/lib/netlist/plib/pmempool.h index aab6448258b..60eba09ccce 100644 --- a/src/lib/netlist/plib/pmempool.h +++ b/src/lib/netlist/plib/pmempool.h @@ -47,7 +47,7 @@ namespace plib { { } - COPYASSIGNMOVE(mempool, delete) + PCOPYASSIGNMOVE(mempool, delete) ~mempool() { @@ -63,13 +63,7 @@ namespace plib { //::operator delete(b->m_data); } } -#if 0 - static inline mempool &instance() - { - static mempool s_mempool; - return s_mempool; - } -#endif + void *allocate(size_t align, size_t size) { block *b = nullptr; @@ -216,7 +210,7 @@ namespace plib { { info(block *b, size_type p) : m_block(b), m_pos(p) { } ~info() = default; - COPYASSIGNMOVE(info, default) + PCOPYASSIGNMOVE(info, default) block * m_block; size_type m_pos; |