From: Wu Y. <ad...@ne...> - 2005-03-28 09:31:51
|
I tested under MSVC a moment ago. The assembly it generated was: push 1 call _foo@4 A quite reasonable result. Much better than GCC in this case. Best regards, Yongwei Wu Yongwei <ad...@ne...> To: min...@li... CC: Subject: Re: [Mingw-users] [mingw - C/C++] RE: __stdcall cancels the effect of extern "C" Arghhhh! A really surprising edge case. Sorry for the confusion and misunderstanding. I think the compiler should really disallow an __stdcall C prototype without parameter specification, or emit a warning and treat it as "foo(void)". Best regards, Yongwei |