lua

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

commit ce67a9be315398efd38c0c334cdd8244fcab57a4
parent 506c89cef8b197440b07060811379c9cb4413e68
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Tue,  6 Sep 2005 14:19:29 -0300

avoid exporting undefined functions

Diffstat:
Mlauxlib.h | 10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/lauxlib.h b/lauxlib.h @@ -1,5 +1,5 @@ /* -** $Id: lauxlib.h,v 1.83 2005/08/26 17:32:05 roberto Exp roberto $ +** $Id: lauxlib.h,v 1.84 2005/08/26 17:36:32 roberto Exp roberto $ ** Auxiliary functions for building Lua libraries ** See Copyright Notice in lua.h */ @@ -15,7 +15,10 @@ #include "lua.h" -#if !defined(LUA_COMPAT_GETN) +#if defined(LUA_COMPAT_GETN) +LUALIB_API int (luaL_getn) (lua_State *L, int t); +LUALIB_API void (luaL_setn) (lua_State *L, int t, int n); +#else #define luaL_getn(L,i) ((int)lua_objlen(L, i)) #define luaL_setn(L,i,j) ((void)0) /* no op! */ #endif @@ -71,9 +74,6 @@ LUALIB_API int (luaL_checkoption) (lua_State *L, int narg, const char *def, LUALIB_API int (luaL_ref) (lua_State *L, int t); LUALIB_API void (luaL_unref) (lua_State *L, int t, int ref); -LUALIB_API int (luaL_getn) (lua_State *L, int t); -LUALIB_API void (luaL_setn) (lua_State *L, int t, int n); - LUALIB_API int (luaL_loadfile) (lua_State *L, const char *filename); LUALIB_API int (luaL_loadbuffer) (lua_State *L, const char *buff, size_t sz, const char *name);