lua-users home
lua-l archive

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


On 12/16/2014 9:29 AM, Luiz Henrique de Figueiredo wrote:
Lua 5.3.0 (rc1) is now available for testing at
	http://www.lua.org/work/lua-5.3.0-rc1.tar.gz
[...]
All feedback welcome. Thanks.


Regarding this section in llimits.h:

/*
** non-return type
*/
#if defined(__GNUC__)
#define l_noret        void __attribute__((noreturn))
#elif defined(_MSC_VER)
#define l_noret        void __declspec(noreturn)
#else
#define l_noret        void
#endif

By experimentation, it looks like __declspec(noreturn) support was added in MSVC 6. So the _MSC_VER line could be changed to the following:

#elif defined(_MSC_VER) && _MSC_VER >= 1200

Just to make things a little easier for anyone playing with older Microsoft compilers. (Also applies to Lua 5.2.)

--
Edward Berner