4 ms·
> Even for conditional compilation I have always been a fan of using module_os_arch.cpp than dealing with pre-processor spaghetti. That's what's come down to d
by Gibbon1 7y ago
> Even for conditional compilation I have always been a fan of using module_os_arch.cpp than dealing with pre-processor spaghetti.
That's what's come down to doing in the firmware I write in C. Has the advantage that you don't need to worry as much about other platforms when dicking with platform specific code. With preprocessor spaghetti it's really easy to break other platforms otherwise. That results in most of preprocessor usage is just switching include files.