What you are asking for is a macro pre-processor for HAL files. There is nothing stopping you from doing this. I think most Linux distributions come with "m4" installed. But be warned that you just might get what you asked for. Software that uses a macro preprocessor is notoriously hard to debug and test.
The only languages that I've used that had this feature were C/C++ and PL/1. Every other language designer has wisely stayed away from this feature. In theory, it is easy to use M4. First you create a file called say "MyStuff.hal.m4" then you run it through m4 and it creates a file called MyStuff.hal It is a very nice way to create files that include repetition. And m4 is very fast. and is a much more powerful preprocessor than the one built into C/C++ If m4 is installed on your system you should be able to type "man m4" and seethe man page document. On Wed, Jun 16, 2021 at 9:06 PM John Dammeyer <[email protected]> wrote: > Is there something like an > > #ifdef > #else > #endif > > in HAL files? > Thanks > John > > "ELS! Nothing else works as well for your Lathe" > Automation Artisans Inc. > www dot autoartisans dot com > > > _______________________________________________ > Emc-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/emc-users > -- Chris Albertson Redondo Beach, California _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
