diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-07-24 11:00:16 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-07-24 11:00:16 -0300 |
| commit | baa0e234564a5ceca4211486d1cc70be55a070a2 (patch) | |
| tree | 3531beba9d415363ff80140b68c369a5646d75ff /lua.h | |
| parent | 55a710545c811f3ccb6aea6232657015f474139f (diff) | |
| download | lua-baa0e234564a5ceca4211486d1cc70be55a070a2.tar.gz lua-baa0e234564a5ceca4211486d1cc70be55a070a2.tar.bz2 lua-baa0e234564a5ceca4211486d1cc70be55a070a2.zip | |
better support for extra user space associated with a Lua state
Diffstat (limited to 'lua.h')
| -rw-r--r-- | lua.h | 4 |
1 files changed, 3 insertions, 1 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lua.h,v 1.309 2014/07/17 13:53:37 roberto Exp roberto $ | 2 | ** $Id: lua.h,v 1.310 2014/07/22 18:07:47 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 |
| @@ -332,6 +332,8 @@ LUA_API void (lua_setallocf) (lua_State *L, lua_Alloc f, void *ud); | |||
| 332 | ** =============================================================== | 332 | ** =============================================================== |
| 333 | */ | 333 | */ |
| 334 | 334 | ||
| 335 | #define lua_getextraspace(L) ((void *)((char *)(L) - LUA_EXTRASPACE)) | ||
| 336 | |||
| 335 | #define lua_tonumber(L,i) lua_tonumberx(L,(i),NULL) | 337 | #define lua_tonumber(L,i) lua_tonumberx(L,(i),NULL) |
| 336 | #define lua_tointeger(L,i) lua_tointegerx(L,(i),NULL) | 338 | #define lua_tointeger(L,i) lua_tointegerx(L,(i),NULL) |
| 337 | 339 | ||
