[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: [ANN] Lua 5.2.2 (rc1) now available
- From: Peter Cawley <lua@...>
- Date: Thu, 21 Feb 2013 15:34:44 +0000
On Thu, Feb 21, 2013 at 1:51 PM, Roberto Ierusalimschy <email@example.com> wrote:
Are you sure? According to this page, it seems that this declaration
should not be necessary:
This is the default calling convention for C and C++ programs.
Because the C naming and calling conventions are the default, the
only time you need to use __cdecl is when you have specified the /Gz
(stdcall) or /Gr (fastcall) compiler option.
The alternative way of phrasing the above is that you need "__cdecl" there just in case the code is compiled with /Gz or /Gr.