diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-03-12 17:57:40 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-03-12 17:57:40 -0300 |
commit | a3addae03634794b841b6c8c4dd8ff83542d8896 (patch) | |
tree | 66695864f7bd56c295ad7cd6a6465845103cd424 /lua.h | |
parent | ad40bb1181d08821af6789147a28aa8370533d11 (diff) | |
download | lua-a3addae03634794b841b6c8c4dd8ff83542d8896.tar.gz lua-a3addae03634794b841b6c8c4dd8ff83542d8896.tar.bz2 lua-a3addae03634794b841b6c8c4dd8ff83542d8896.zip |
lua_gettable and similars return type of gotten value
Diffstat (limited to 'lua.h')
-rw-r--r-- | lua.h | 15 |
1 files changed, 8 insertions, 7 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lua.h,v 1.299 2014/02/13 12:11:34 roberto Exp roberto $ | 2 | ** $Id: lua.h,v 1.300 2014/02/25 14:30:21 roberto Exp roberto $ |
3 | ** Lua - A Scripting Language | 3 | ** Lua - A Scripting Language |
4 | ** Lua.org, PUC-Rio, Brazil (http://www.lua.org) | 4 | ** Lua.org, PUC-Rio, Brazil (http://www.lua.org) |
5 | ** See Copyright Notice at the end of this file | 5 | ** See Copyright Notice at the end of this file |
@@ -228,12 +228,13 @@ LUA_API int (lua_pushthread) (lua_State *L); | |||
228 | /* | 228 | /* |
229 | ** get functions (Lua -> stack) | 229 | ** get functions (Lua -> stack) |
230 | */ | 230 | */ |
231 | LUA_API void (lua_getglobal) (lua_State *L, const char *var); | 231 | LUA_API int (lua_getglobal) (lua_State *L, const char *var); |
232 | LUA_API void (lua_gettable) (lua_State *L, int idx); | 232 | LUA_API int (lua_gettable) (lua_State *L, int idx); |
233 | LUA_API void (lua_getfield) (lua_State *L, int idx, const char *k); | 233 | LUA_API int (lua_getfield) (lua_State *L, int idx, const char *k); |
234 | LUA_API void (lua_rawget) (lua_State *L, int idx); | 234 | LUA_API int (lua_rawget) (lua_State *L, int idx); |
235 | LUA_API void (lua_rawgeti) (lua_State *L, int idx, lua_Integer n); | 235 | LUA_API int (lua_rawgeti) (lua_State *L, int idx, lua_Integer n); |
236 | LUA_API void (lua_rawgetp) (lua_State *L, int idx, const void *p); | 236 | LUA_API int (lua_rawgetp) (lua_State *L, int idx, const void *p); |
237 | |||
237 | LUA_API void (lua_createtable) (lua_State *L, int narr, int nrec); | 238 | LUA_API void (lua_createtable) (lua_State *L, int narr, int nrec); |
238 | LUA_API void *(lua_newuserdata) (lua_State *L, size_t sz); | 239 | LUA_API void *(lua_newuserdata) (lua_State *L, size_t sz); |
239 | LUA_API int (lua_getmetatable) (lua_State *L, int objindex); | 240 | LUA_API int (lua_getmetatable) (lua_State *L, int objindex); |