diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-10-27 14:15:53 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-10-27 14:15:53 -0200 |
commit | 2cbbf3933ac7aa82c788d388b64ad0df7a9d83f6 (patch) | |
tree | d2aba2867b81f95ebdf46741e616d8649e9c1a73 /lualib.h | |
parent | e2b6b7de1b51ac662ad76423e045d0cf3274f051 (diff) | |
download | lua-2cbbf3933ac7aa82c788d388b64ad0df7a9d83f6.tar.gz lua-2cbbf3933ac7aa82c788d388b64ad0df7a9d83f6.tar.bz2 lua-2cbbf3933ac7aa82c788d388b64ad0df7a9d83f6.zip |
new macro LUALIB_API (so the lib can be a separate DLL)
Diffstat (limited to 'lualib.h')
-rw-r--r-- | lualib.h | 17 |
1 files changed, 11 insertions, 6 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lualib.h,v 1.12 2000/09/12 13:46:59 roberto Exp roberto $ | 2 | ** $Id: lualib.h,v 1.13 2000/10/20 16:39:03 roberto Exp roberto $ |
3 | ** Lua standard libraries | 3 | ** Lua standard libraries |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -11,13 +11,18 @@ | |||
11 | #include "lua.h" | 11 | #include "lua.h" |
12 | 12 | ||
13 | 13 | ||
14 | #ifndef LUALIB_API | ||
15 | #define LUALIB_API extern | ||
16 | #endif | ||
17 | |||
18 | |||
14 | #define LUA_ALERT "_ALERT" | 19 | #define LUA_ALERT "_ALERT" |
15 | 20 | ||
16 | LUA_API void lua_baselibopen (lua_State *L); | 21 | LUALIB_API void lua_baselibopen (lua_State *L); |
17 | LUA_API void lua_iolibopen (lua_State *L); | 22 | LUALIB_API void lua_iolibopen (lua_State *L); |
18 | LUA_API void lua_strlibopen (lua_State *L); | 23 | LUALIB_API void lua_strlibopen (lua_State *L); |
19 | LUA_API void lua_mathlibopen (lua_State *L); | 24 | LUALIB_API void lua_mathlibopen (lua_State *L); |
20 | LUA_API void lua_dblibopen (lua_State *L); | 25 | LUALIB_API void lua_dblibopen (lua_State *L); |
21 | 26 | ||
22 | 27 | ||
23 | 28 | ||