diff options
author | Mike Pall <mike> | 2017-04-07 12:48:37 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2017-04-07 12:48:37 +0200 |
commit | de26f76e2ec1989713a0353366de64adfc6ee111 (patch) | |
tree | 00ecbd6146c4e5fc86666b6b9198e55924689f4d /src/lua.h | |
parent | 2b8de8cfc6ae483d6ec16b7609bab64e37d6fc02 (diff) | |
download | luajit-de26f76e2ec1989713a0353366de64adfc6ee111.tar.gz luajit-de26f76e2ec1989713a0353366de64adfc6ee111.tar.bz2 luajit-de26f76e2ec1989713a0353366de64adfc6ee111.zip |
From Lua 5.2: Add lua_tonumberx() and lua_tointegerx().
Contributed by François Perrad.
Diffstat (limited to 'src/lua.h')
-rw-r--r-- | src/lua.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -350,6 +350,8 @@ LUA_API int lua_loadx (lua_State *L, lua_Reader reader, void *dt, | |||
350 | const char *chunkname, const char *mode); | 350 | const char *chunkname, const char *mode); |
351 | LUA_API const lua_Number *lua_version (lua_State *L); | 351 | LUA_API const lua_Number *lua_version (lua_State *L); |
352 | LUA_API void lua_copy (lua_State *L, int fromidx, int toidx); | 352 | LUA_API void lua_copy (lua_State *L, int fromidx, int toidx); |
353 | LUA_API lua_Number lua_tonumberx (lua_State *L, int idx, int *isnum); | ||
354 | LUA_API lua_Integer lua_tointegerx (lua_State *L, int idx, int *isnum); | ||
353 | 355 | ||
354 | /* From Lua 5.3. */ | 356 | /* From Lua 5.3. */ |
355 | LUA_API int lua_isyieldable (lua_State *L); | 357 | LUA_API int lua_isyieldable (lua_State *L); |