summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2021-11-21 23:22:21 +0100
committerTyge Løvset <[email protected]>2021-11-21 23:22:21 +0100
commit49ec46c2bb291a4faaec7741f764d07029dc0208 (patch)
treea57a4fc3db4c9df387ac41c6e01be9e27b047946
parentee09c3627dee4eb2ec87fda9783be1bb15e132d9 (diff)
downloadSTC-modified-49ec46c2bb291a4faaec7741f764d07029dc0208.tar.gz
STC-modified-49ec46c2bb291a4faaec7741f764d07029dc0208.zip
Moved a line.
-rw-r--r--include/stc/ccommon.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/stc/ccommon.h b/include/stc/ccommon.h
index df2cd438..0680dc2c 100644
--- a/include/stc/ccommon.h
+++ b/include/stc/ccommon.h
@@ -85,7 +85,6 @@
# define c_make(T) T
# define c_new(T, ...) new (c_alloc(T)) T(__VA_ARGS__)
#endif
-#define c_delete(T, ptr) do { T* _p = ptr; T##_del(_p); c_free(_p); } while(0)
#ifndef c_malloc
# define c_malloc(sz) malloc(sz)
# define c_calloc(n, sz) calloc(n, sz)
@@ -93,6 +92,7 @@
# define c_free(p) free(p)
#endif
+#define c_delete(T, ptr) do { T* _p = ptr; T##_del(_p); c_free(_p); } while(0)
#define c_swap(T, x, y) do { T _c_t = x; x = y; y = _c_t; } while (0)
#define c_arraylen(a) (sizeof (a)/sizeof (a)[0])