acme
Foundational cross-platform layer of the ca2 framework
Loading...
Searching...
No Matches
malloc.h
1//
2// malloc.h
3// acme
4//
5// Created by Camilo Sasuke Thomas Borregaard Soerensen on 02/06/19.
6//
7
8
9#define MALLOC_NEW(p, type) \
10p = (type *) ::malloc(sizeof(type)); \
11allocateø< >(p) type;
12
13#define MALLOC_DEL(p, type) \
14if(::is_set(p)) { \
15p->~type(); \
16::free(p); }
17
18
19