02-18-2022, 06:31 AM
(02-17-2022, 11:06 PM)dbsoft Wrote: Hope that makes sense?
The problem is I want to know what the code is after it's being preprocessed. gcc -E on this snippet only returns if defined(1) and nothing else. It's on WIN32 so of course __WIN32__ is true. But what I want to know is what actually the declaration and definition of dwmain. The code is very obscure I can't preprocess it by hand.
You see it's returning _dwmain(argc, argv) but where is _dwmain is defined? I searched through out the source code but found no where else _dwmain being used other than on dw.h.
If _dwmain is declared like this: int _dwmain(a, b) then where is the definition of it? It can't be the int WINAPI WinMain because this very function return _dwmain(argc, argv).
Please give me the preprocessed (by hand) of that snippet, I want to know what you actually wanted to write in plain C code, without macros. Thanks.