Блог пользователя SPyofgame

Автор SPyofgame, история, 6 лет назад, По-английски

Does anyone know any simple website or tool or vscode-extension that replace all macros directly into the source code ? I tried to search on google/vscode-extension something like antimacro ..., remove macro ..., replace macro ... but find no result. Thanks for helping ^^

  • Проголосовать: нравится
  • +19
  • Проголосовать: не нравится

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +23 Проголосовать: не нравится

Expanding macros is work of the preprocessor, which is already there in the compiler. G++ has a flag -E (expand macros). Use it like this:

g++ -E file.cpp