new macro LUALIB_API (so the lib can be a separate DLL)

This commit is contained in:
Roberto Ierusalimschy
2000-10-27 14:15:53 -02:00
parent e2b6b7de1b
commit 2cbbf3933a
8 changed files with 62 additions and 52 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: lbaselib.c,v 1.13 2000/10/20 16:57:42 roberto Exp roberto $
** $Id: lbaselib.c,v 1.14 2000/10/24 19:19:15 roberto Exp roberto $
** Basic library
** See Copyright Notice in lua.h
*/
@@ -639,7 +639,7 @@ static const struct luaL_reg base_funcs[] = {
LUA_API void lua_baselibopen (lua_State *L) {
LUALIB_API void lua_baselibopen (lua_State *L) {
luaL_openl(L, base_funcs);
lua_pushstring(L, LUA_VERSION);
lua_setglobal(L, "_VERSION");