elements/simplicity_alloc.h
Russell O'Connor f502c24196 Squashed 'src/simplicity/' content from commit 86ac0f92c4
git-subtree-dir: src/simplicity
git-subtree-split: 86ac0f92c4b2b6d694dca85dce3b6909aed25894
2024-10-07 14:38:29 -04:00

15 lines
372 B
C

#ifndef SIMPLICITY_SIMPLICITY_ALLOC_H
#define SIMPLICITY_SIMPLICITY_ALLOC_H
#include <stdlib.h>
/* Allocate with malloc by default. */
#define simplicity_malloc malloc
/* Allocate+zero initialize with calloc by default. */
#define simplicity_calloc calloc
/* Deallocate with free by default. */
#define simplicity_free free
#endif /* SIMPLICITY_SIMPLICITY_ALLOC_H */