summaryrefslogtreecommitdiffhomepage
path: root/stc/ccommon.h
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2021-05-15 15:19:01 +0200
committerTyge Løvset <[email protected]>2021-05-15 15:19:01 +0200
commitac20f731153747ec5cbfc5566cc149485e20002a (patch)
tree008e95814cb01aeaca2ac1b336a3902e08847b30 /stc/ccommon.h
parent560b6520ed0cb6f8faaf8309a87d4803b55a32c4 (diff)
downloadSTC-modified-ac20f731153747ec5cbfc5566cc149485e20002a.tar.gz
STC-modified-ac20f731153747ec5cbfc5566cc149485e20002a.zip
Renamed newly introduced internal c_cast() to c_make() for c++ compatability. Added usage.
Diffstat (limited to 'stc/ccommon.h')
-rw-r--r--stc/ccommon.h4
1 files changed, 2 insertions, 2 deletions
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<T*>(c_malloc(sizeof(T)))
#define c_new_n(T, n) static_cast<T*>(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)