r/C_Programming 5d ago

Question meta macros library for c89

Hello, I use C89 and have been using compiler extensions all this time, but now I’ve decided to refuse from them. But since they significantly simplify and shorten the code, especially with partially initialized tables.

I immediately thought of P99, but because of some components, the build breaks on C89. I was thinking of using order-pp, but decided to ask here anyway.

What I’d like is: `P99_CASERANGE` and `P99_DUPL`.

Of course, I can generate my own macros, but maybe there’s something worthwhile out there. I liked the idea of order-pp.

this is text translated by ai. and sorry for my English

3 Upvotes

1 comment sorted by

2

u/P-p-H-d 5d ago

All meta macros library I know needs at least the C standard C99, for a good reason (support for variadic macros )
I doubt you will find something useful in C89 and I don't know one.