util.dependencies: Check for Lua 5.1. We don't currently support any other versions...
authorWaqas Hussain <waqas20@gmail.com>
Wed, 9 Apr 2014 18:01:02 +0000 (14:01 -0400)
committerWaqas Hussain <waqas20@gmail.com>
Wed, 9 Apr 2014 18:01:02 +0000 (14:01 -0400)
util/dependencies.lua

index e55b240596a2b563b8216091f20f305e81fe3fd0..4d50cf63a17452d76f17891cdba3f9e57d5eec51 100644 (file)
@@ -49,6 +49,14 @@ package.preload["util.ztact"] = function ()
 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"