aboutsummaryrefslogtreecommitdiff
path: root/lauxlib.h
diff options
context:
space:
mode:
Diffstat (limited to 'lauxlib.h')
-rw-r--r--lauxlib.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/lauxlib.h b/lauxlib.h
index 57d259c0..250c7da9 100644
--- a/lauxlib.h
+++ b/lauxlib.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lauxlib.h,v 1.1 2001/11/29 22:14:34 rieru Exp rieru $ 2** $Id: lauxlib.h,v 1.42 2002/02/05 22:36:52 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*/
@@ -27,7 +27,9 @@ typedef struct luaL_reg {
27} luaL_reg; 27} luaL_reg;
28 28
29 29
30LUALIB_API void luaL_openlib (lua_State *L, const luaL_reg *l, int n); 30LUALIB_API void luaL_openlib (lua_State *L, const luaL_reg *l);
31LUALIB_API void luaL_opennamedlib (lua_State *L, const char *libname,
32 const luaL_reg *l);
31LUALIB_API void luaL_typerror (lua_State *L, int narg, const char *tname); 33LUALIB_API void luaL_typerror (lua_State *L, int narg, const char *tname);
32LUALIB_API void luaL_argerror (lua_State *L, int numarg, 34LUALIB_API void luaL_argerror (lua_State *L, int numarg,
33 const char *extramsg); 35 const char *extramsg);
@@ -67,7 +69,6 @@ LUALIB_API const char *luaL_errstr (int errcode);
67#define luaL_check_long(L,n) ((long)luaL_check_number(L, n)) 69#define luaL_check_long(L,n) ((long)luaL_check_number(L, n))
68#define luaL_opt_int(L,n,d) ((int)luaL_opt_number(L, n,d)) 70#define luaL_opt_int(L,n,d) ((int)luaL_opt_number(L, n,d))
69#define luaL_opt_long(L,n,d) ((long)luaL_opt_number(L, n,d)) 71#define luaL_opt_long(L,n,d) ((long)luaL_opt_number(L, n,d))
70#define luaL_openl(L,a) luaL_openlib(L, a, (sizeof(a)/sizeof(a[0])))
71 72
72 73
73/* 74/*