lua-users home
lua-l archive

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


> Could all API functions be identified as such in header and code with a 
> macro such as LUA_API_FUNCTION, so that those of us who would like to build 
> Lua as a Windows DLL can do so easily? 

Do you mean a macro at the beginning of each declaration, such as

  LUA_API_FUNCTION void lua_settable (...);

  LUA_API_FUNCTION void lua_settable (...) { ...

Is this enough for all Windows uses? Don't you need another macro between
the type and the function name for things such as `cdecl' (or something
like that)?

-- Roberto