Skip to content

Commit

Permalink
FIX: missing MAKE_CLEAR_MEM define
Browse files Browse the repository at this point in the history
  • Loading branch information
Oldes committed Oct 2, 2024
1 parent 9b92815 commit 7aacb1c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/include/reb-c.h
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ typedef void(*CFUNC)(void *);

// Memory related functions:
#define MAKE_MEM(n) malloc(n)
#define MAKE_CLEAR_MEM(n) calloc(n, 1)
#define MAKE_NEW(s) MAKE_MEM(sizeof(s))
#define FREE_MEM(m) free(m)
#define CLEAR(m, s) memset((void*)(m), 0, s);
Expand Down

0 comments on commit 7aacb1c

Please sign in to comment.