Tuesday, August 22, 2017

C++11: Empty Macro

You can now define a macro that takes arguments and expands to nothing. Here is an example:

#define LOG(X)
Reference: https://stackoverflow.com/questions/9187628/empty-function-macros
                  https://isocpp.org/wiki/faq/cpp11-language-misc#cpp11-c99

No comments:

Post a Comment