aboutsummaryrefslogtreecommitdiff
path: root/lauxlib.h
diff options
context:
space:
mode:
Diffstat (limited to 'lauxlib.h')
-rw-r--r--lauxlib.h21
1 files changed, 17 insertions, 4 deletions
diff --git a/lauxlib.h b/lauxlib.h
index d3ed988a..866f66af 100644
--- a/lauxlib.h
+++ b/lauxlib.h
@@ -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);
46LUALIB_API lua_Integer (luaL_checkinteger) (lua_State *L, int arg); 46LUALIB_API lua_Integer (luaL_checkinteger) (lua_State *L, int arg);
47LUALIB_API lua_Integer (luaL_optinteger) (lua_State *L, int arg, 47LUALIB_API lua_Integer (luaL_optinteger) (lua_State *L, int arg,
48 lua_Integer def); 48 lua_Integer def);
49LUALIB_API lua_Unsigned (luaL_checkunsigned) (lua_State *L, int arg);
50LUALIB_API lua_Unsigned (luaL_optunsigned) (lua_State *L, int arg,
51 lua_Unsigned def);
52 49
53LUALIB_API void (luaL_checkstack) (lua_State *L, int sz, const char *msg); 50LUALIB_API void (luaL_checkstack) (lua_State *L, int sz, const char *msg);
54LUALIB_API void (luaL_checktype) (lua_State *L, int arg, int t); 51LUALIB_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