2 ms·
i hate this "trick" with a passion. i am the one who winds up having to debug this shit, and theres nothing i love doing more than trawling through hundreds of
by webdevver 2y ago
i hate this "trick" with a passion. i am the one who winds up having to debug this shit, and theres nothing i love doing more than trawling through hundreds of thousands of preprocessed C++ that gets defecated by `gcc -E ...`. even better when the macro expansion is 10 levels deep.
you need tables? use python (or your scripting language of choice) as a pre-compile step that generates the .cpp/.c/.h files, and then build that.
- uecker 2y agoI don't quite understand this comment. Why would adding another preprocessing step using another tool make it easier? I always found it nice that you can use 'gcc -E' and inspect the output. Of yours, 10 levels of macro expansion are a problem, but simple X macros would not usually do this.