diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-04-07 10:52:45 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-04-07 10:52:45 -0300 |
| commit | b1957b1e8eef6c7f9e121af63baff90e980c724d (patch) | |
| tree | 9614d28e99ee9841f981a48286ead6b4ff380f5f | |
| parent | a17e1fe124995ea281ffcf091505ccc562bf052a (diff) | |
| download | lua-b1957b1e8eef6c7f9e121af63baff90e980c724d.tar.gz lua-b1957b1e8eef6c7f9e121af63baff90e980c724d.tar.bz2 lua-b1957b1e8eef6c7f9e121af63baff90e980c724d.zip | |
detail for Windows (untested)
| -rw-r--r-- | luaconf.h | 21 |
1 files changed, 9 insertions, 12 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: luaconf.h,v 1.41 2005/04/06 17:30:13 roberto Exp roberto $ | 2 | ** $Id: luaconf.h,v 1.42 2005/04/07 13:09:07 roberto Exp roberto $ |
| 3 | ** Configuration file for Lua | 3 | ** Configuration file for Lua |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -95,30 +95,27 @@ | |||
| 95 | @@ LUA_API is a mark for all core API functions. | 95 | @@ LUA_API is a mark for all core API functions. |
| 96 | @@ LUALIB_API is a mark for all standard library functions. | 96 | @@ LUALIB_API is a mark for all standard library functions. |
| 97 | ** CHANGE them if you need to define those functions in some special way. | 97 | ** CHANGE them if you need to define those functions in some special way. |
| 98 | ** For instance, if you want to create two Windows DLLs, one with the | 98 | ** For instance, if you want to create one Windows DLL with the core and |
| 99 | ** core, the other with the libraries, you may want to use the following | 99 | ** the libraries, you may want to use the following definition (define |
| 100 | ** definition (define LUA_BUILD_AS_DLL to get it). | 100 | ** LUA_BUILD_AS_DLL to get it). |
| 101 | */ | 101 | */ |
| 102 | #if defined (LUA_BUILD_AS_DLL) | 102 | #if defined(LUA_BUILD_AS_DLL) |
| 103 | 103 | ||
| 104 | #if defined(LUA_CORE) | 104 | #if defined(LUA_CORE) || defined(LUA_LIB) |
| 105 | #define LUA_API __declspec(__dllexport) | 105 | #define LUA_API __declspec(__dllexport) |
| 106 | #else | 106 | #else |
| 107 | #define LUA_API __declspec(__dllimport) | 107 | #define LUA_API __declspec(__dllimport) |
| 108 | #endif | 108 | #endif |
| 109 | #if defined(LUA_LIB) | ||
| 110 | #define LUALIB_API __declspec(__dllexport) | ||
| 111 | #else | ||
| 112 | #define LUALIB_API __declspec(__dllimport) | ||
| 113 | #endif | ||
| 114 | 109 | ||
| 115 | #else | 110 | #else |
| 116 | 111 | ||
| 117 | #define LUA_API extern | 112 | #define LUA_API extern |
| 118 | #define LUALIB_API extern | ||
| 119 | 113 | ||
| 120 | #endif | 114 | #endif |
| 121 | 115 | ||
| 116 | /* more often then not the libs go together with the core */ | ||
| 117 | #define LUALIB_API LUA_API | ||
| 118 | |||
| 122 | 119 | ||
| 123 | /* | 120 | /* |
| 124 | @@ lua_assert describes the internal assertions in Lua. | 121 | @@ lua_assert describes the internal assertions in Lua. |
