3 ms·
I've written a lot of C++ at Google. Macros are used sparingly, e.g. for command line flags: https://gflags.github.io/gflags/ https://gflags.github.io/gflags/
by ariwilson 9y ago
I've written a lot of C++ at Google. Macros are used sparingly, e.g. for command line flags:
https://gflags.github.io/gflags/ https://gflags.github.io/gflags/
They are discouraged for use in place of an API:
https://google.github.io/styleguide/cppguide.html#Preprocessor_Macros https://google.github.io/styleguide/cppguide.html#Preprocess...