From ac20f731153747ec5cbfc5566cc149485e20002a Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Sat, 15 May 2021 15:19:01 +0200 Subject: Renamed newly introduced internal c_cast() to c_make() for c++ compatability. Added usage. --- stc/ccommon.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'stc/ccommon.h') diff --git a/stc/ccommon.h b/stc/ccommon.h index 38015d16..b3a1b766 100644 --- a/stc/ccommon.h +++ b/stc/ccommon.h @@ -69,11 +69,11 @@ #if __cplusplus #define c_new(T) static_cast(c_malloc(sizeof(T))) #define c_new_n(T, n) static_cast(c_malloc(sizeof(T)*(n))) -#define c_cast(T) T +#define c_make(T) T #else #define c_new(T) c_malloc(sizeof(T)) #define c_new_n(T, n) c_malloc(sizeof(T)*(n)) -#define c_cast(T) (T) +#define c_make(T) (T) #endif #ifndef c_malloc #define c_malloc(sz) malloc(sz) -- cgit v1.2.3