From 90c5b799f0ae6cc56cf6145db2ffce3fccd3265c Mon Sep 17 00:00:00 2001 From: Diego Date: Thu, 11 Feb 2016 22:35:46 -0500 Subject: [PATCH] #define LUA_COMPAT_APIINTCASTS to support lua 5.3 LUA_COMPAT_APIINTCASTS macro is required to enable lua_tounsigned() in lua 5.3 or else stack.hpp won't compile --- sol/types.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/sol/types.hpp b/sol/types.hpp index a72f09c..1e31e45 100644 --- a/sol/types.hpp +++ b/sol/types.hpp @@ -22,6 +22,7 @@ #ifndef SOL_TYPES_HPP #define SOL_TYPES_HPP +#define LUA_COMPAT_APIINTCASTS #include #include #include "traits.hpp"