diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-02-18 14:20:56 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-02-18 14:20:56 -0300 |
| commit | d2ebdc045bae7c8ed0e62729ca455444c076b1bb (patch) | |
| tree | 3237f58be972a4e328380e6ec1f96bbf1b8b70d4 /lua.h | |
| parent | 81ede6bfcedb9304974110e00a2a4ba301afb4f7 (diff) | |
| download | lua-d2ebdc045bae7c8ed0e62729ca455444c076b1bb.tar.gz lua-d2ebdc045bae7c8ed0e62729ca455444c076b1bb.tar.bz2 lua-d2ebdc045bae7c8ed0e62729ca455444c076b1bb.zip | |
new macro 'lua_checkversion' to check whether core and application are
compatible
Diffstat (limited to 'lua.h')
| -rw-r--r-- | lua.h | 6 |
1 files changed, 5 insertions, 1 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lua.h,v 1.230 2008/07/18 19:58:10 roberto Exp roberto $ | 2 | ** $Id: lua.h,v 1.231 2008/08/13 14:08:49 roberto Exp roberto $ |
| 3 | ** Lua - An Extensible Extension Language | 3 | ** Lua - An Extensible Extension 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 |
| @@ -115,6 +115,10 @@ LUA_API lua_State *(lua_newthread) (lua_State *L); | |||
| 115 | LUA_API lua_CFunction (lua_atpanic) (lua_State *L, lua_CFunction panicf); | 115 | LUA_API lua_CFunction (lua_atpanic) (lua_State *L, lua_CFunction panicf); |
| 116 | 116 | ||
| 117 | 117 | ||
| 118 | LUA_API void lua_checkversion_ (lua_State *L, int version); | ||
| 119 | #define lua_checkversion(L) (lua_checkversion_(L, LUA_VERSION_NUM)) | ||
| 120 | |||
| 121 | |||
| 118 | /* | 122 | /* |
| 119 | ** basic stack manipulation | 123 | ** basic stack manipulation |
| 120 | */ | 124 | */ |
