macro: Move definition of dummy_t to macro-fundamental.h

There is code in macro-fundamental.h that makes use of dummy_t so
let's make sure to declare dummy_t in macro-fundamental.h as well.
This commit is contained in:
Daan De Meyer
2025-04-18 13:59:06 +02:00
parent 69ebfef1a1
commit 5a124e8ee1
2 changed files with 6 additions and 6 deletions
-6
View File
@@ -275,12 +275,6 @@ static inline size_t size_add(size_t x, size_t y) {
return saturate_add(x, y, SIZE_MAX);
}
typedef struct {
int _empty[0];
} dummy_t;
assert_cc(sizeof(dummy_t) == 0);
/* A little helper for subtracting 1 off a pointer in a safe UB-free way. This is intended to be used for
* loops that count down from a high pointer until some base. A naive loop would implement this like this:
*