-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclass.h
32 lines (27 loc) · 1.25 KB
/
class.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* class.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tdemay <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2014/01/29 14:57:17 by tdemay #+# #+# */
/* Updated: 2014/01/29 14:57:17 by tdemay ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef CLASS_H
# define CLASS_H
# include <stdlib.h>
/*
** \def NEW(_CLASS_)
** \brief Macro preprocesseur pour l'allocation memoire facile
** \author tdemay
*/
# define NEW(_CLASS_) ((_CLASS_*)malloc(sizeof(_CLASS_)))
/*
** \def DELETE(_OBJ_)
** \brief Macro preprocesseur pour desallocation memoire facile
** \author tdemay
*/
# define DELETE(_OBJ_) free(_OBJ_)
#endif /* !CLASS_H */