diff options
| author | Tyge Løvset <[email protected]> | 2023-05-20 00:40:54 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2023-05-20 00:40:54 +0200 |
| commit | bb59d9c87f8d99f50c439351480c0ec8d6eea38e (patch) | |
| tree | c8e273e7a63332ca37a5a15e9c81e534b8af7e44 /include/stc/ccommon.h | |
| parent | 26513bb1352ab4e4ffe931aabd80868216afc551 (diff) | |
| download | STC-modified-bb59d9c87f8d99f50c439351480c0ec8d6eea38e.tar.gz STC-modified-bb59d9c87f8d99f50c439351480c0ec8d6eea38e.zip | |
Rename c_make() macro to c_init(). c_make still available, but deprecated.
Diffstat (limited to 'include/stc/ccommon.h')
| -rw-r--r-- | include/stc/ccommon.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/stc/ccommon.h b/include/stc/ccommon.h index 07c72e2f..e9d97d4b 100644 --- a/include/stc/ccommon.h +++ b/include/stc/ccommon.h @@ -117,8 +117,9 @@ /* Function macros and others */ -#define c_make(C, ...) \ - C##_from_n((C##_raw[])__VA_ARGS__, c_sizeof((C##_raw[])__VA_ARGS__)/c_sizeof(C##_raw)) +#define c_init(C, ...) \ + C##_from_n((C##_raw[])__VA_ARGS__, c_sizeof((C##_raw[])__VA_ARGS__)/c_sizeof(C##_raw)) +#define c_make(C, ...) c_init(C, __VA_ARGS__) // [deprecated] #define c_litstrlen(literal) (c_sizeof("" literal) - 1) #define c_arraylen(a) (intptr_t)(sizeof(a)/sizeof 0[a]) |
