diff options
Diffstat (limited to 'lauxlib.h')
-rw-r--r-- | lauxlib.h | 21 |
1 files changed, 17 insertions, 4 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lauxlib.h,v 1.123 2014/01/05 14:04:46 roberto Exp roberto $ | 2 | ** $Id: lauxlib.h,v 1.124 2014/04/15 18:25:49 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 | */ |
@@ -46,9 +46,6 @@ LUALIB_API lua_Number (luaL_optnumber) (lua_State *L, int arg, lua_Number def); | |||
46 | LUALIB_API lua_Integer (luaL_checkinteger) (lua_State *L, int arg); | 46 | LUALIB_API lua_Integer (luaL_checkinteger) (lua_State *L, int arg); |
47 | LUALIB_API lua_Integer (luaL_optinteger) (lua_State *L, int arg, | 47 | LUALIB_API lua_Integer (luaL_optinteger) (lua_State *L, int arg, |
48 | lua_Integer def); | 48 | lua_Integer def); |
49 | LUALIB_API lua_Unsigned (luaL_checkunsigned) (lua_State *L, int arg); | ||
50 | LUALIB_API lua_Unsigned (luaL_optunsigned) (lua_State *L, int arg, | ||
51 | lua_Unsigned def); | ||
52 | 49 | ||
53 | LUALIB_API void (luaL_checkstack) (lua_State *L, int sz, const char *msg); | 50 | LUALIB_API void (luaL_checkstack) (lua_State *L, int sz, const char *msg); |
54 | LUALIB_API void (luaL_checktype) (lua_State *L, int arg, int t); | 51 | LUALIB_API void (luaL_checktype) (lua_State *L, int arg, int t); |
@@ -211,6 +208,22 @@ LUALIB_API void (luaL_openlib) (lua_State *L, const char *libname, | |||
211 | #endif | 208 | #endif |
212 | 209 | ||
213 | 210 | ||
211 | /* | ||
212 | ** {============================================================ | ||
213 | ** Compatibility with deprecated unsigned conversions | ||
214 | ** ============================================================= | ||
215 | */ | ||
216 | #if defined(LUA_COMPAT_APIUNSIGNED) | ||
217 | |||
218 | #define luaL_checkunsigned(L,a) ((lua_Unsigned)luaL_checkinteger(L,a)) | ||
219 | #define luaL_optunsigned(L,a,d) \ | ||
220 | ((lua_Unsigned)luaL_optinteger(L,a,(lua_Integer)(d))) | ||
221 | |||
222 | #endif | ||
223 | /* }============================================================ */ | ||
224 | |||
225 | |||
226 | |||
214 | #endif | 227 | #endif |
215 | 228 | ||
216 | 229 | ||