lua

A copy of the Lua development repository
Log | Files | Refs | README

commit b1957b1e8eef6c7f9e121af63baff90e980c724d
parent a17e1fe124995ea281ffcf091505ccc562bf052a
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Thu,  7 Apr 2005 10:52:23 -0300

detail for Windows (untested)

Diffstat:
Mluaconf.h | 21+++++++++------------
1 file changed, 9 insertions(+), 12 deletions(-)

diff --git a/luaconf.h b/luaconf.h @@ -1,5 +1,5 @@ /* -** $Id: luaconf.h,v 1.41 2005/04/06 17:30:13 roberto Exp roberto $ +** $Id: luaconf.h,v 1.42 2005/04/07 13:09:07 roberto Exp roberto $ ** Configuration file for Lua ** See Copyright Notice in lua.h */ @@ -95,30 +95,27 @@ @@ LUA_API is a mark for all core API functions. @@ LUALIB_API is a mark for all standard library functions. ** CHANGE them if you need to define those functions in some special way. -** For instance, if you want to create two Windows DLLs, one with the -** core, the other with the libraries, you may want to use the following -** definition (define LUA_BUILD_AS_DLL to get it). +** For instance, if you want to create one Windows DLL with the core and +** the libraries, you may want to use the following definition (define +** LUA_BUILD_AS_DLL to get it). */ -#if defined (LUA_BUILD_AS_DLL) +#if defined(LUA_BUILD_AS_DLL) -#if defined(LUA_CORE) +#if defined(LUA_CORE) || defined(LUA_LIB) #define LUA_API __declspec(__dllexport) #else #define LUA_API __declspec(__dllimport) #endif -#if defined(LUA_LIB) -#define LUALIB_API __declspec(__dllexport) -#else -#define LUALIB_API __declspec(__dllimport) -#endif #else #define LUA_API extern -#define LUALIB_API extern #endif +/* more often then not the libs go together with the core */ +#define LUALIB_API LUA_API + /* @@ lua_assert describes the internal assertions in Lua.