Correct memory allocation macro.
This commit is contained in:
parent
fbee1de696
commit
c7e815c53b
|
@ -21,7 +21,7 @@
|
||||||
#include "editstr.h"
|
#include "editstr.h"
|
||||||
|
|
||||||
#define ALLOC_OBJ(type) (type *)HeapAlloc(me_heap, 0, sizeof(type))
|
#define ALLOC_OBJ(type) (type *)HeapAlloc(me_heap, 0, sizeof(type))
|
||||||
#define ALLOC_N_OBJ(type, count) (type *)HeapAlloc(me_heap, 0, count*sizeof(type))
|
#define ALLOC_N_OBJ(type, count) (type *)HeapAlloc(me_heap, 0, (count)*sizeof(type))
|
||||||
#define FREE_OBJ(ptr) HeapFree(me_heap, 0, ptr)
|
#define FREE_OBJ(ptr) HeapFree(me_heap, 0, ptr)
|
||||||
|
|
||||||
/* style.c */
|
/* style.c */
|
||||||
|
|
Loading…
Reference in New Issue