From 85c1461422a8a97a25ee385793def9c89e70739c Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Sun, 25 Jul 2010 12:02:41 -0300 Subject: new macros LUA_VERSION_{MAJOR/MINOR/RELEASE} --- luaconf.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'luaconf.h') diff --git a/luaconf.h b/luaconf.h index 3755e7c7..8a81f189 100644 --- a/luaconf.h +++ b/luaconf.h @@ -1,5 +1,5 @@ /* -** $Id: luaconf.h,v 1.139 2010/05/28 14:27:07 roberto Exp roberto $ +** $Id: luaconf.h,v 1.140 2010/07/18 14:34:45 roberto Exp roberto $ ** Configuration file for Lua ** See Copyright Notice in lua.h */ @@ -90,9 +90,11 @@ LUA_CDIR"?.dll;" LUA_CDIR"loadall.dll;" ".\\?.dll" #else /* }{ */ + +#define LUA_VDIR LUA_VERSION_MAJOR "." LUA_VERSION_MINOR "/" #define LUA_ROOT "/usr/local/" -#define LUA_LDIR LUA_ROOT "share/lua/5.2/" -#define LUA_CDIR LUA_ROOT "lib/lua/5.2/" +#define LUA_LDIR LUA_ROOT "share/lua/" LUA_VDIR +#define LUA_CDIR LUA_ROOT "lib/lua/" LUA_VDIR #define LUA_PATH_DEFAULT \ LUA_LDIR"?.lua;" LUA_LDIR"?/init.lua;" \ LUA_CDIR"?.lua;" LUA_CDIR"?/init.lua;" "./?.lua" -- cgit v1.2.3-55-g6feb