8#define EXCLUSIVE_END_INDEX 128
16 bitset_set(&bs, 0,
true);
17 bitset_set(&bs, 5,
true);
21 for (bitset_index_t i = 0; i < 128; i++) {
22 if (bitset_get(&bs, i)) {
23 printf(
"Bit at index %u is set\n", i);
27 DC_FOR_CONST(bitset, &bs, iter, index) { printf(
"Iterated index: %u\n", index); }
static void example_basic()
static DC_PUBLIC dc_debug_fmt dc_debug_fmt_new()
#define DC_FOR_CONST(TYPE, INSTANCE, ITER, ITEM)
#define DC_SCOPED(type,...)
RAII in C. Call the destructor when the variable goes out of scope.