lfreist/hwinfo

Rethink code architecture

lfreist opened this issue · 0 comments

Using #if defined(__linux__)... within all method implementations becomes unreadable...

Alternative structure:
For each header file, I create

  • ...platform_unspecific.cpp
  • ...linux.cpp
  • ...windows.cpp
  • ...apple.cpp