C语言解决函数名与宏冲突

#include <stdio.h>

void f() { printf("function\n"); }
#define f() printf("macro\n")

int main() {
  f(); // macro
  (f)(); // function

  return 0;
}

函数名加括号

原文地址:https://www.cnblogs.com/chenkkkabc/p/2956405.html