Changeset

6065:9ab23488a17c

util.dependencies: Check for Lua 5.1. We don't currently support any other versions. LuaJIT identifies as 5.1.
author Waqas Hussain <waqas20@gmail.com>
date Wed, 09 Apr 2014 14:01:02 -0400
parents 6064:c4a3222165c4
children 6066:95b3a59d7932
files util/dependencies.lua
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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"