diff options
author | 2024-06-05 17:23:45 +0600 | |
---|---|---|
committer | 2024-06-05 17:23:45 +0600 | |
commit | 815eca3e8f367a6fed50be59b10316b5028773aa (patch) | |
tree | da6db4241b77bb54f51a4dfdecb7ab6cece20914 /src/common.h | |
parent | 83cf6de508664535c77e4d6aa8f0695a3fa7cdf2 (diff) | |
download | c-obp-example-815eca3e8f367a6fed50be59b10316b5028773aa.tar.gz c-obp-example-815eca3e8f367a6fed50be59b10316b5028773aa.zip |
Add class declaration helper
Signed-off-by: Mubashshir <ahmubashshir@gmail.com>
Diffstat (limited to 'src/common.h')
-rw-r--r-- | src/common.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common.h b/src/common.h index 08b8c73..a9a39f2 100644 --- a/src/common.h +++ b/src/common.h @@ -13,7 +13,7 @@ (consumer)((ptr), ## __VA_ARGS__); \ strncpy((ptr), "", (size)) -#define array(type, size) ((type *) calloc (sizeof(type), (size))) +#define array(type, size) ((type *) calloc ((size), sizeof(type))) #define ref(x) const x * const #define mut(x) const x * #define ptr(x) x * |