3 ms·
In my experience this is a much better approach. Most modern compilers can inline across linker boundaries anyways, so it's not a real performance issue either.
by Arelius 15y ago
In my experience this is a much better approach. Most modern compilers can inline across linker boundaries anyways, so it's not a real performance issue either.
- LefterisJP 15y agoYes having platform specific code in its own header source and just #ifdef the includes provides much cleaner and nicer code
- ori_b 15y agoDon't even do that -- have one header that all the platform interfaces implement without ifdefs. Keep the conditional compilation in the makefiles, not in the source.