3 ms·
The advantage of his approach is that the C preprocessor is already present, so no need to install any additional external tools. The stuff he's demonstrating i
by usefulcat 11y ago
The advantage of his approach is that the C preprocessor is already present, so no need to install any additional external tools. The stuff he's demonstrating is simple enough that using an external tool would be overkill.
- chubot 11y agoI would agree, if the tool weren't a simple Python script. You can just "wget" the .py file and copy it into your source tree -- no need to mess with any package managers or anything. Or you can write code generation in C, like the sqlite lemon parser, and then you really don't need any more tools.
- usefulcat 11y agoYou still need to have and use python, that's the "external tool" I was referring to. Whereas with the preprocessor, you already have it and it's already being used.
- makecheck 11y agoThe preprocessor doesn't necessarily behave though (just look at Visual Studio). You might actually have a more consistent result by using the same version of a scripting language on every platform.
- MereInterest 11y agoThat seems more of a reason to upgrade your tools, rather than adding a new tool. Granted, that may be easier said than done, as broken compilers may accept broken code that needs to be fixed.