diff options
Diffstat (limited to 'lua.h')
| -rw-r--r-- | lua.h | 5 |
1 files changed, 4 insertions, 1 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lua.h,v 1.205 2005/03/28 17:17:53 roberto Exp roberto $ | 2 | ** $Id: lua.h,v 1.206 2005/05/05 20:47:02 roberto Exp roberto $ |
| 3 | ** Lua - An Extensible Extension Language | 3 | ** Lua - An Extensible Extension Language |
| 4 | ** Tecgraf: Computer Graphics Technology Group, PUC-Rio, Brazil | 4 | ** Tecgraf: Computer Graphics Technology Group, PUC-Rio, Brazil |
| 5 | ** http://www.lua.org mailto:info@lua.org | 5 | ** http://www.lua.org mailto:info@lua.org |
| @@ -148,6 +148,7 @@ LUA_API lua_Number (lua_tonumber) (lua_State *L, int idx); | |||
| 148 | LUA_API lua_Integer (lua_tointeger) (lua_State *L, int idx); | 148 | LUA_API lua_Integer (lua_tointeger) (lua_State *L, int idx); |
| 149 | LUA_API int (lua_toboolean) (lua_State *L, int idx); | 149 | LUA_API int (lua_toboolean) (lua_State *L, int idx); |
| 150 | LUA_API const char *(lua_tostring) (lua_State *L, int idx); | 150 | LUA_API const char *(lua_tostring) (lua_State *L, int idx); |
| 151 | LUA_API const char *(lua_tolstring) (lua_State *L, int idx, size_t *len); | ||
| 151 | LUA_API size_t (lua_objsize) (lua_State *L, int idx); | 152 | LUA_API size_t (lua_objsize) (lua_State *L, int idx); |
| 152 | LUA_API lua_CFunction (lua_tocfunction) (lua_State *L, int idx); | 153 | LUA_API lua_CFunction (lua_tocfunction) (lua_State *L, int idx); |
| 153 | LUA_API void *(lua_touserdata) (lua_State *L, int idx); | 154 | LUA_API void *(lua_touserdata) (lua_State *L, int idx); |
| @@ -275,6 +276,8 @@ LUA_API lua_Alloc (lua_getallocf) (lua_State *L, void **ud); | |||
| 275 | #define lua_setglobal(L,s) lua_setfield(L, LUA_GLOBALSINDEX, (s)) | 276 | #define lua_setglobal(L,s) lua_setfield(L, LUA_GLOBALSINDEX, (s)) |
| 276 | #define lua_getglobal(L,s) lua_getfield(L, LUA_GLOBALSINDEX, (s)) | 277 | #define lua_getglobal(L,s) lua_getfield(L, LUA_GLOBALSINDEX, (s)) |
| 277 | 278 | ||
| 279 | #define lua_tostring(L,i) lua_tolstring(L, (i), NULL) | ||
| 280 | |||
| 278 | 281 | ||
| 279 | 282 | ||
| 280 | /* | 283 | /* |
