aboutsummaryrefslogtreecommitdiff
path: root/lauxlib.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-09-06 14:19:51 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-09-06 14:19:51 -0300
commitce67a9be315398efd38c0c334cdd8244fcab57a4 (patch)
treeaa90be0ed3a17a64b5d3ecb386be2115d7eaf1d7 /lauxlib.h
parent506c89cef8b197440b07060811379c9cb4413e68 (diff)
downloadlua-ce67a9be315398efd38c0c334cdd8244fcab57a4.tar.gz
lua-ce67a9be315398efd38c0c334cdd8244fcab57a4.tar.bz2
lua-ce67a9be315398efd38c0c334cdd8244fcab57a4.zip
avoid exporting undefined functions
Diffstat (limited to 'lauxlib.h')
-rw-r--r--lauxlib.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/lauxlib.h b/lauxlib.h
index 3ead2780..f5ca0b44 100644
--- a/lauxlib.h
+++ b/lauxlib.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lauxlib.h,v 1.83 2005/08/26 17:32:05 roberto Exp roberto $ 2** $Id: lauxlib.h,v 1.84 2005/08/26 17:36:32 roberto Exp roberto $
3** Auxiliary functions for building Lua libraries 3** Auxiliary functions for building Lua libraries
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -15,7 +15,10 @@
15#include "lua.h" 15#include "lua.h"
16 16
17 17
18#if !defined(LUA_COMPAT_GETN) 18#if defined(LUA_COMPAT_GETN)
19LUALIB_API int (luaL_getn) (lua_State *L, int t);
20LUALIB_API void (luaL_setn) (lua_State *L, int t, int n);
21#else
19#define luaL_getn(L,i) ((int)lua_objlen(L, i)) 22#define luaL_getn(L,i) ((int)lua_objlen(L, i))
20#define luaL_setn(L,i,j) ((void)0) /* no op! */ 23#define luaL_setn(L,i,j) ((void)0) /* no op! */
21#endif 24#endif
@@ -71,9 +74,6 @@ LUALIB_API int (luaL_checkoption) (lua_State *L, int narg, const char *def,
71LUALIB_API int (luaL_ref) (lua_State *L, int t); 74LUALIB_API int (luaL_ref) (lua_State *L, int t);
72LUALIB_API void (luaL_unref) (lua_State *L, int t, int ref); 75LUALIB_API void (luaL_unref) (lua_State *L, int t, int ref);
73 76
74LUALIB_API int (luaL_getn) (lua_State *L, int t);
75LUALIB_API void (luaL_setn) (lua_State *L, int t, int n);
76
77LUALIB_API int (luaL_loadfile) (lua_State *L, const char *filename); 77LUALIB_API int (luaL_loadfile) (lua_State *L, const char *filename);
78LUALIB_API int (luaL_loadbuffer) (lua_State *L, const char *buff, size_t sz, 78LUALIB_API int (luaL_loadbuffer) (lua_State *L, const char *buff, size_t sz,
79 const char *name); 79 const char *name);