diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-06-26 15:38:28 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-06-26 15:38:28 -0300 |
| commit | a77d263e86feea55529800028f960d7124c1385f (patch) | |
| tree | 88bc21289c5ef341a7f3509c067524fea7003049 /lauxlib.h | |
| parent | 7cc40851e1d1a18a4c45fca31dbccd4206050b11 (diff) | |
| download | lua-a77d263e86feea55529800028f960d7124c1385f.tar.gz lua-a77d263e86feea55529800028f960d7124c1385f.tar.bz2 lua-a77d263e86feea55529800028f960d7124c1385f.zip | |
unsigned-manipulation functions (lua_puhsunsigned, lua_tounsigned, etc.)
deprecated
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 | ||
