Factorize code so that _DEF macros use _DEF_AS ones

This commit is contained in:
Patrick Pelissier committed 2021-02-07 23:04:59 +01:00
1 parent d12b1edc39
commit 25497bd96f
18 files changed
+61 -185

No files matched your search

+1 -3
View File
@@ -40,9 +40,7 @@
NOTE: Can not use m-list since it may be expanded from LIST_DEF
*/
#define MEMPOOL_DEF(name, type) \
M_BEGIN_PROTECTED_CODE \
MEMPOOL_DEF_P2(name, type, M_C(name, _t) ) \
M_END_PROTECTED_CODE
MEMPOOL_DEF_AS(name, M_C(name,_t), type)
/* Fast Fixed Size thread unsafe allocator based on memory region.