From c2d862f377f9bf2f276db7ba41ea835117603881 Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Mon, 23 Jan 2023 17:15:20 +0100 Subject: Changed c_OVERLOADMACRO() internally. --- include/stc/cspan.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'include/stc/cspan.h') diff --git a/include/stc/cspan.h b/include/stc/cspan.h index 502f1b71..5ba408a8 100644 --- a/include/stc/cspan.h +++ b/include/stc/cspan.h @@ -128,15 +128,15 @@ int demo2() { #define cspan_subdim3(...) c_MACRO_OVERLOAD(cspan_subdim3, __VA_ARGS__) #define cspan_subdim2(self, x) \ {.data=cspan_at(self, x, 0), .dim={(self)->dim[1]}} -#define cspan_subdim32(self, x) \ +#define cspan_subdim3_2(self, x) \ {.data=cspan_at(self, x, 0, 0), .dim={(self)->dim[1], (self)->dim[2]}} -#define cspan_subdim33(self, x, y) \ +#define cspan_subdim3_3(self, x, y) \ {.data=cspan_at(self, x, y, 0), .dim={(self)->dim[2]}} -#define cspan_subdim42(self, x) \ +#define cspan_subdim4_2(self, x) \ {.data=cspan_at(self, x, 0, 0, 0), .dim={(self)->dim[1], (self)->dim[2], (self)->dim[3]}} -#define cspan_subdim43(self, x, y) \ +#define cspan_subdim4_3(self, x, y) \ {.data=cspan_at(self, x, y, 0, 0), .dim={(self)->dim[2], (self)->dim[3]}} -#define cspan_subdim44(self, x, y, z) \ +#define cspan_subdim4_4(self, x, y, z) \ {.data=cspan_at(self, x, y, z, 0), .dim={(self)->dim[3]}} STC_INLINE size_t _cspan_i1(const uint32_t dim[1], uint32_t x) -- cgit v1.2.3