diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2003-03-18 09:25:32 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2003-03-18 09:25:32 -0300 |
commit | 40cfb0691e233e164efee27873454cf457255a47 (patch) | |
tree | e41e02ce562545e700837f5c64ed0ac3a645ec81 /lauxlib.h | |
parent | 9b7af7e45bfe3432be8fea27e70de076b22f805f (diff) | |
download | lua-40cfb0691e233e164efee27873454cf457255a47.tar.gz lua-40cfb0691e233e164efee27873454cf457255a47.tar.bz2 lua-40cfb0691e233e164efee27873454cf457255a47.zip |
new auxiliary functions for `type' manipulation
Diffstat (limited to 'lauxlib.h')
-rw-r--r-- | lauxlib.h | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lauxlib.h,v 1.57 2003/01/27 13:46:16 roberto Exp roberto $ | 2 | ** $Id: lauxlib.h,v 1.58 2003/02/11 15:32:31 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 | */ |
@@ -16,7 +16,7 @@ | |||
16 | 16 | ||
17 | 17 | ||
18 | #ifndef LUALIB_API | 18 | #ifndef LUALIB_API |
19 | #define LUALIB_API extern | 19 | #define LUALIB_API LUA_API |
20 | #endif | 20 | #endif |
21 | 21 | ||
22 | 22 | ||
@@ -33,7 +33,6 @@ LUALIB_API int luaL_getmetafield (lua_State *L, int obj, const char *e); | |||
33 | LUALIB_API int luaL_callmeta (lua_State *L, int obj, const char *e); | 33 | LUALIB_API int luaL_callmeta (lua_State *L, int obj, const char *e); |
34 | LUALIB_API int luaL_typerror (lua_State *L, int narg, const char *tname); | 34 | LUALIB_API int luaL_typerror (lua_State *L, int narg, const char *tname); |
35 | LUALIB_API int luaL_argerror (lua_State *L, int numarg, const char *extramsg); | 35 | LUALIB_API int luaL_argerror (lua_State *L, int numarg, const char *extramsg); |
36 | LUALIB_API void *luaL_checkudata (lua_State *L, int ud, const char *tname); | ||
37 | LUALIB_API const char *luaL_checklstring (lua_State *L, int numArg, size_t *l); | 36 | LUALIB_API const char *luaL_checklstring (lua_State *L, int numArg, size_t *l); |
38 | LUALIB_API const char *luaL_optlstring (lua_State *L, int numArg, | 37 | LUALIB_API const char *luaL_optlstring (lua_State *L, int numArg, |
39 | const char *def, size_t *l); | 38 | const char *def, size_t *l); |
@@ -44,6 +43,10 @@ LUALIB_API void luaL_checkstack (lua_State *L, int sz, const char *msg); | |||
44 | LUALIB_API void luaL_checktype (lua_State *L, int narg, int t); | 43 | LUALIB_API void luaL_checktype (lua_State *L, int narg, int t); |
45 | LUALIB_API void luaL_checkany (lua_State *L, int narg); | 44 | LUALIB_API void luaL_checkany (lua_State *L, int narg); |
46 | 45 | ||
46 | LUALIB_API int luaL_newmetatable (lua_State *L, const char *tname); | ||
47 | LUALIB_API void luaL_getmetatable (lua_State *L, const char *tname); | ||
48 | LUALIB_API void *luaL_checkudata (lua_State *L, int ud, const char *tname); | ||
49 | |||
47 | LUALIB_API void luaL_where (lua_State *L, int lvl); | 50 | LUALIB_API void luaL_where (lua_State *L, int lvl); |
48 | LUALIB_API int luaL_error (lua_State *L, const char *fmt, ...); | 51 | LUALIB_API int luaL_error (lua_State *L, const char *fmt, ...); |
49 | 52 | ||
@@ -115,7 +118,7 @@ LUALIB_API void luaL_pushresult (luaL_Buffer *B); | |||
115 | 118 | ||
116 | 119 | ||
117 | /* | 120 | /* |
118 | ** Compatibility macros | 121 | ** Compatibility macros and functions |
119 | */ | 122 | */ |
120 | 123 | ||
121 | LUALIB_API int lua_dofile (lua_State *L, const char *filename); | 124 | LUALIB_API int lua_dofile (lua_State *L, const char *filename); |