diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2023-11-05 16:21:09 +0000 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2023-11-05 16:21:09 +0000 |
commit | 4ae6c052764767f8281576a4ed938e1d6cf7c688 (patch) | |
tree | f47a2b3557858065ce2d96d2d548e0b1216aad56 /lib | |
parent | aadb21853a0defc9aeac55ee2f4d582ba0c52cf4 (diff) | |
download | ovm-4ae6c052764767f8281576a4ed938e1d6cf7c688.tar.gz ovm-4ae6c052764767f8281576a4ed938e1d6cf7c688.tar.bz2 ovm-4ae6c052764767f8281576a4ed938e1d6cf7c688.zip |
Current work on preprocessor implementation
Lots to refactor and test
Diffstat (limited to 'lib')
-rw-r--r-- | lib/darr.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -24,8 +24,9 @@ typedef struct size_t used, available; } darr_t; -#define DARR_DEFAULT_SIZE 8 -#define DARR_REALLOC_MULT 1.5 +#define DARR_DEFAULT_SIZE 8 +#define DARR_REALLOC_MULT 1.5 +#define DARR_AT(TYPE, DARR_DATA, IND) ((TYPE *)(DARR_DATA))[(IND)] void darr_init(darr_t *, size_t); void darr_ensure_capacity(darr_t *, size_t); |