Effective C ++ record

1, for the simple variable, preferably in enums const object or alternatively #defines.

  #define TEST 1.432

  Symbol Name TEST will be removed before processing source code compiler preprocessor, it will not enter the symbol table, when you use this constant but get a compiler error message, the error message with a 1.432 instead of TEST, and therefore takes more time to track it.

2, for the shape of a macro function, use is preferably replaced inline function #defines.

3、

Guess you like

Origin www.cnblogs.com/yapp/p/12109344.html