clay icon indicating copy to clipboard operation
clay copied to clipboard

[Core] Add "strict" mode for strict C99 compliance

Open FintasticMan opened this issue 1 year ago • 1 comments

Depends on #119.

This just allows users of the library to define CLAY_STRICT to get rid of the use of the non-standard ##__VA_ARGS__ construction, if they're OK with making sure that the affected macros aren't used without an argument.

I'm not sure if this is something we want, so I'd be very open to feedback! I like how much simpler the CLAY_SIZING_* macros are without having to worry about making sure that they also work when no arguments are given, so it might not even be out of the picture to just replace the current implementation with this strict one.

FintasticMan avatar Dec 30 '24 18:12 FintasticMan

perhaps

#if defined(CLAY_STRICT) && CLAY_STRICT == 1

would be a better way to enable CLAY_STRICT? That way you can use

#define CLAY_STRICT 0
#define CLAY_STRICT 1

to enable/disable

VisenDev avatar Dec 30 '24 20:12 VisenDev

Superseded by #150.

FintasticMan avatar Jan 02 '25 19:01 FintasticMan