diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-03-20 09:54:08 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-03-20 09:54:08 -0300 |
| commit | 88c9bf99de50df5575cce13e8e6c278b9f1dc0d0 (patch) | |
| tree | 3cfe2080f0a2595b62b74752c84ffa763e83f8e6 /lauxlib.h | |
| parent | 63a614e1453b6b03b89b5d47efa476acd5f9d1d2 (diff) | |
| download | lua-88c9bf99de50df5575cce13e8e6c278b9f1dc0d0.tar.gz lua-88c9bf99de50df5575cce13e8e6c278b9f1dc0d0.tar.bz2 lua-88c9bf99de50df5575cce13e8e6c278b9f1dc0d0.zip | |
standard libraries in packages
Diffstat (limited to 'lauxlib.h')
| -rw-r--r-- | lauxlib.h | 7 |
1 files changed, 4 insertions, 3 deletions
| @@ -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 | ||
| 30 | LUALIB_API void luaL_openlib (lua_State *L, const luaL_reg *l, int n); | 30 | LUALIB_API void luaL_openlib (lua_State *L, const luaL_reg *l); |
| 31 | LUALIB_API void luaL_opennamedlib (lua_State *L, const char *libname, | ||
| 32 | const luaL_reg *l); | ||
| 31 | LUALIB_API void luaL_typerror (lua_State *L, int narg, const char *tname); | 33 | LUALIB_API void luaL_typerror (lua_State *L, int narg, const char *tname); |
| 32 | LUALIB_API void luaL_argerror (lua_State *L, int numarg, | 34 | LUALIB_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 | /* |
