1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2025-07-15 20:25:00 +03:00

Mayaqua: add "PTR_TO_PTR" macro intended to be used with FreeSafe()

This commit is contained in:
Davide Beatrici
2018-12-22 07:38:38 +01:00
parent 0cf6fac7a3
commit e51c319648
2 changed files with 5 additions and 4 deletions

View File

@ -128,6 +128,7 @@
#define MEMTAG_TO_POINTER(p) ((void *)(((UCHAR *)(p)) + sizeof(MEMTAG)))
#define POINTER_TO_MEMTAG(p) ((MEMTAG *)(((UCHAR *)(p)) - sizeof(MEMTAG)))
#define IS_NULL_POINTER(p) (((p) == NULL) || ((POINTER_TO_UINT64(p) == (UINT64)sizeof(MEMTAG))))
#define PTR_TO_PTR(p) ((void **)(&p))
// Fixed size of a block of memory pool
#define MEMPOOL_MAX_SIZE 3000