This rule is Obsolete | |
Synopsis: | Place non-portable code in a special file so that it may be easily located when porting code from one architecture/environment to another |
Language: | C++ |
Severity Level: | 6 |
Category: | Code Organization |
Description: |
Apart from making non-portable code easy to find and replace, also restrict the visibility of non-portable code as much as possible. Try to avoid exporting non-portable code through interfaces to external users of your code. Machine dependent code is also code that directly accesses operating system API's such as the Windows NT API or the API of Windows NT extensions like (D)COM. |
Literature References: |
Ellemtel Rec. 5 |
ISC++ Rec. 15.3 |