That's very neat (and it does get used in code I've done for the Mac and Pi) but TBH I hate that way (only from bad past experience) - once had a big project and a whole series of environment checks where missed so code was targeting the wrong platform and the delay was so bad till it was spotted...... alias commands so you have a kind of Hardware Abstraction Layer...
I would rather put platform dependant code in a separate module and build for the platform - give me a linker any day
Statistics: Posted by MiscBits — Fri Jul 12, 2024 2:25 pm