lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


I'm not aware of any formal standard, though the de-facto standard is
probably __cdecl. Given that some of the API functions have to be
__cdecl due to variable argument lists, it makes sense to export all
of them as __cdecl. Though as a counter-example, all of the (recent)
games by Relic Entertainment use Lua via a DLL and export everything
as __stdcall (apart from the aforementioned vararg functions).

On Mon, Jul 27, 2009 at 5:11 PM, steve donovan<steve.j.donovan@gmail.com> wrote:
> On Mon, Jul 27, 2009 at 5:37 PM, King, Mike<MKing@klmicrowave.com> wrote:
>> Is there a standard calling convention for building the Lua DLL on Windows?
>> The Lua DLLs I’ve seen from a couple of projects are not using the __cdecl
>> convention.  Is the standard __stdcall?  Is there a standard?
>
> They are exported as just plain cdecl C functions.
>
> steve d.
>