util.dependencies: Check for Lua 5.1. We don't currently support any other versions. LuaJIT identifies as 5.1.
authorWaqas Hussain <waqas20@gmail.com>
Wed, 09 Apr 2014 14:01:02 -0400
changeset 6065 9ab23488a17c
parent 6064 c4a3222165c4
child 6066 95b3a59d7932
util.dependencies: Check for Lua 5.1. We don't currently support any other versions. LuaJIT identifies as 5.1.
util/dependencies.lua
--- a/util/dependencies.lua	Sat Apr 05 15:05:40 2014 +0100
+++ b/util/dependencies.lua	Wed Apr 09 14:01:02 2014 -0400
@@ -49,6 +49,14 @@
 end;
 
 function check_dependencies()
+	if _VERSION ~= "Lua 5.1" then
+		print "***********************************"
+		print("Unsupported Lua version: ".._VERSION);
+		print("Only Lua 5.1 is supported.");
+		print "***********************************"
+		return false;
+	end
+
 	local fatal;
 	
 	local lxp = softreq "lxp"