ソースを参照

Allow Lua 5.2 (despite integer quirks)

Ole Krüger 10 年 前
コミット
a82729f79c
共有2 個のファイルを変更した9 個の追加6 個の削除を含む
  1. 8 5
      README.md
  2. 1 1
      lib/luwra/common.hpp

+ 8 - 5
README.md

@@ -6,11 +6,14 @@ A header-only C++ library which provides a Lua wrapper with minimal overhead.
 ## Requirements
 You need will need a C++14 compliant compiler and Lua 5.3 (or higher) installed.
 
- Platform                | Lua 5.1  | Lua 5.2  | Lua 5.3
--------------------------|----------|----------|---------
- Linux (clang++ 3.6)     | untested | untested | works
- Linux (g++ 5.1)         | untested | untested | works
- Everything else         | untested | untested | untested
+ Platform            | Lua 5.1  | Lua 5.2 <sup>**1)**</sup> | Lua 5.3
+---------------------|----------|---------------------------|---------
+ Linux (clang++ 3.6) | untested | works                     | works
+ Linux (g++ 5.1)     | untested | works                     | works
+ Everything else     | untested | untested                  | untested
+
+<sup>**1)**</sup> Inherits the integer quirks that come with Lua 5.2, that why the 'types_numeric'
+test case fails.
 
 ## Usage
 Refer to the [wiki pages](https://github.com/vapourismo/luwra/wiki). In order to use the library

+ 1 - 1
lib/luwra/common.hpp

@@ -15,7 +15,7 @@
 #include <lua.hpp>
 
 // Check for proper Lua version
-#if !defined(LUA_VERSION_NUM) || LUA_VERSION_NUM < 503 || LUA_VERSION_NUM >= 600
+#if !defined(LUA_VERSION_NUM) || LUA_VERSION_NUM < 502 || LUA_VERSION_NUM >= 600
 	#error Luwra has not been tested against your installed version of Lua
 #endif