Hi the Stackoverflow community,
I'm trying to compile the following code in the Visual Studio C++ 2022 compiler. Here's my code,
#include <iostream>
using namespace std;
#define dbg(x...)
int main() {
return 0;
}
As you can see the code above can be compiled with gcc 8.3. However, if you use Visual Studio 2022 C++ compiler you will get the following error:
main.cpp(?): error C2010: '.': unexpected in macro parameter list
My question is the following. How can we find an equivalent solution to the problem such that I can compile under VS2022 C++? Thank you.