List what Lua versions supported instead of which aren't
When skimming over the source code, it might be easier for coders to see what lua versions are supported, instead aren't. This doesn't have any functional impact Signed-off-by: Shay Agroskin <agrosshay@gmail.com>
This commit is contained in:
parent
3f4b1bd0cc
commit
1916677df1
|
@ -73,8 +73,9 @@ if (NOT LUA_FOUND)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(LUA_FULL_VERSION "${LUA_VERSION_MAJOR}.${LUA_VERSION_MINOR}.${LUA_VERSION_PATCH}")
|
set(LUA_FULL_VERSION "${LUA_VERSION_MAJOR}.${LUA_VERSION_MINOR}.${LUA_VERSION_PATCH}")
|
||||||
if(LUA_FULL_VERSION VERSION_EQUAL 5.4.0 OR LUA_FULL_VERSION VERSION_GREATER 5.4.0 )
|
# 5.1 <= LUA_VERSION < 5.4
|
||||||
message(FATAL_ERROR "Awesome doesn't support Lua versions newer than 5.3, please refer to"
|
if(NOT ((LUA_FULL_VERSION VERSION_EQUAL 5.1.0 OR LUA_FULL_VERSION VERSION_GREATER 5.1.0) AND LUA_FULL_VERSION VERSION_LESS 5.4.0))
|
||||||
|
message(FATAL_ERROR "Awesome only supports Lua versions 5.1-5.3, please refer to"
|
||||||
"https://awesomewm.org/apidoc/documentation/10-building-and-testing.md.html#Building")
|
"https://awesomewm.org/apidoc/documentation/10-building-and-testing.md.html#Building")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
4
luaa.h
4
luaa.h
|
@ -31,8 +31,8 @@
|
||||||
#include "common/lualib.h"
|
#include "common/lualib.h"
|
||||||
#include "common/luaclass.h"
|
#include "common/luaclass.h"
|
||||||
|
|
||||||
#if LUA_VERSION_NUM > 503
|
#if !(501 <= LUA_VERSION_NUM && LUA_VERSION_NUM < 504)
|
||||||
print("Awesome doesn't support Lua versions newer than 5.3, please refer to https://awesomewm.org/apidoc/documentation/10-building-and-testing.md.html#Building")
|
print("Awesome only supports Lua versions 5.1-5.3, please refer to, please refer to https://awesomewm.org/apidoc/documentation/10-building-and-testing.md.html#Building")
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define luaA_deprecate(L, repl) \
|
#define luaA_deprecate(L, repl) \
|
||||||
|
|
Loading…
Reference in New Issue