summaryrefslogtreecommitdiffhomepage
path: root/include/stc/ccommon.h
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2023-05-13 11:04:11 +0200
committerTyge Løvset <[email protected]>2023-05-13 11:04:11 +0200
commitbe7d9913d4a284bdeb7f0431482b5731b5ef31df (patch)
tree92ab761056a60961827b0025768bad9870fbc24c /include/stc/ccommon.h
parent98d131bfc1bcc8b82cb27b30ad6da176d1fed117 (diff)
downloadSTC-modified-be7d9913d4a284bdeb7f0431482b5731b5ef31df.tar.gz
STC-modified-be7d9913d4a284bdeb7f0431482b5731b5ef31df.zip
File priv/raii.h no longer included by stc/ccommon.h, instead moved to stc/algo/raii.h and included by stc/calgo.h
Diffstat (limited to 'include/stc/ccommon.h')
-rw-r--r--include/stc/ccommon.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/stc/ccommon.h b/include/stc/ccommon.h
index 1882646c..fd673696 100644
--- a/include/stc/ccommon.h
+++ b/include/stc/ccommon.h
@@ -29,7 +29,6 @@
#include <stdbool.h>
#include <string.h>
#include <assert.h>
-#include "priv/raii.h"
#define c_NPOS INTPTR_MAX
#define c_ZI PRIiPTR
@@ -62,7 +61,7 @@
#define _c_ARG_N(_1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, \
_14, _15, _16, N, ...) N
-#ifdef __cplusplus
+#ifdef __cplusplus
#include <new>
#define _i_alloc(T) static_cast<T*>(i_malloc(c_sizeof(T)))
#define _i_new(T, ...) new (_i_alloc(T)) T(__VA_ARGS__)