detail for Windows (untested)

This commit is contained in:
Roberto Ierusalimschy 2005-04-07 10:52:45 -03:00
parent a17e1fe124
commit b1957b1e8e
1 changed files with 9 additions and 12 deletions

View File

@ -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 ** Configuration file for Lua
** See Copyright Notice in lua.h ** See Copyright Notice in lua.h
*/ */
@ -95,30 +95,27 @@
@@ LUA_API is a mark for all core API functions. @@ LUA_API is a mark for all core API functions.
@@ LUALIB_API is a mark for all standard library functions. @@ LUALIB_API is a mark for all standard library functions.
** CHANGE them if you need to define those functions in some special way. ** 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 ** For instance, if you want to create one Windows DLL with the core and
** core, the other with the libraries, you may want to use the following ** the libraries, you may want to use the following definition (define
** definition (define LUA_BUILD_AS_DLL to get it). ** 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) #define LUA_API __declspec(__dllexport)
#else #else
#define LUA_API __declspec(__dllimport) #define LUA_API __declspec(__dllimport)
#endif #endif
#if defined(LUA_LIB)
#define LUALIB_API __declspec(__dllexport)
#else
#define LUALIB_API __declspec(__dllimport)
#endif
#else #else
#define LUA_API extern #define LUA_API extern
#define LUALIB_API extern
#endif #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. @@ lua_assert describes the internal assertions in Lua.