From 9d302e38e407ddcb8777b4710a5f3dda53a4b513 Mon Sep 17 00:00:00 2001
From: Jeff Carpenter <pub@jeffc.ca>
Date: Sun, 15 Nov 2020 00:25:04 -0800
Subject: [PATCH] bugfix: require lua5.3.x (#45)

lua_getuservalue, lua_newuserdata and presumably other functions were replaced in Lua 5.4
---
 src/meson.build | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/meson.build b/src/meson.build
index 4e5ced2..7f24fdc 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -1,6 +1,7 @@
-luadep = dependency('lua', version : '>=5.3', required : false)
+lua_version = ['>=5.3', '<5.4']
+luadep = dependency('lua', version : lua_version, required : false)
 if not luadep.found()
-  luadep = dependency('lua5.3', version : '>=5.3')
+  luadep = dependency('lua5.3', version : lua_version)
 endif
 
 pthreaddep = dependency('threads')