acme
Foundational cross-platform layer of the ca2 framework
Toggle main menu visibility
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) \
10
p = (type *) ::malloc(sizeof(type)); \
11
allocateø< >(p) type;
12
13
#define MALLOC_DEL(p, type) \
14
if(::is_set(p)) { \
15
p->~type(); \
16
::free(p); }
17
18
19
prototype
prototype
malloc.h
Generated by
1.17.0