diff options
Diffstat (limited to 'lauxlib.h')
-rw-r--r-- | lauxlib.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -48,6 +48,7 @@ LUALIB_API int (luaL_getmetafield) (lua_State *L, int obj, const char *e); | |||
48 | LUALIB_API int (luaL_callmeta) (lua_State *L, int obj, const char *e); | 48 | LUALIB_API int (luaL_callmeta) (lua_State *L, int obj, const char *e); |
49 | LUALIB_API const char *(luaL_tolstring) (lua_State *L, int idx, size_t *len); | 49 | LUALIB_API const char *(luaL_tolstring) (lua_State *L, int idx, size_t *len); |
50 | LUALIB_API int (luaL_argerror) (lua_State *L, int arg, const char *extramsg); | 50 | LUALIB_API int (luaL_argerror) (lua_State *L, int arg, const char *extramsg); |
51 | LUALIB_API int (luaL_typeerror) (lua_State *L, int arg, const char *tname); | ||
51 | LUALIB_API const char *(luaL_checklstring) (lua_State *L, int arg, | 52 | LUALIB_API const char *(luaL_checklstring) (lua_State *L, int arg, |
52 | size_t *l); | 53 | size_t *l); |
53 | LUALIB_API const char *(luaL_optlstring) (lua_State *L, int arg, | 54 | LUALIB_API const char *(luaL_optlstring) (lua_State *L, int arg, |
@@ -126,6 +127,10 @@ LUALIB_API void (luaL_requiref) (lua_State *L, const char *modname, | |||
126 | 127 | ||
127 | #define luaL_argcheck(L, cond,arg,extramsg) \ | 128 | #define luaL_argcheck(L, cond,arg,extramsg) \ |
128 | ((void)((cond) || luaL_argerror(L, (arg), (extramsg)))) | 129 | ((void)((cond) || luaL_argerror(L, (arg), (extramsg)))) |
130 | |||
131 | #define luaL_argexpected(L,cond,arg,tname) \ | ||
132 | ((void)((cond) || luaL_typeerror(L, (arg), (tname)))) | ||
133 | |||
129 | #define luaL_checkstring(L,n) (luaL_checklstring(L, (n), NULL)) | 134 | #define luaL_checkstring(L,n) (luaL_checklstring(L, (n), NULL)) |
130 | #define luaL_optstring(L,n,d) (luaL_optlstring(L, (n), (d), NULL)) | 135 | #define luaL_optstring(L,n,d) (luaL_optlstring(L, (n), (d), NULL)) |
131 | 136 | ||