meta/begin: a comment to describe the default heap option

This commit is contained in:
Minglei Jin 2022-12-09 16:28:26 +08:00
parent 5f2b393c0c
commit 66fba7ec60
1 changed files with 1 additions and 0 deletions

View File

@ -24,6 +24,7 @@ int metaBegin(SMeta *pMeta, int8_t heap) {
void (*xFree)(void *, void *) = NULL; void (*xFree)(void *, void *) = NULL;
void *xArg = NULL; void *xArg = NULL;
// default heap to META_BEGIN_HEAP_NIL
if (heap == META_BEGIN_HEAP_OS) { if (heap == META_BEGIN_HEAP_OS) {
xMalloc = tdbDefaultMalloc; xMalloc = tdbDefaultMalloc;
xFree = tdbDefaultFree; xFree = tdbDefaultFree;