summaryrefslogtreecommitdiff
path: root/src/lua.h
diff options
context:
space:
mode:
authorMike Pall <mike>2017-04-07 12:48:37 +0200
committerMike Pall <mike>2017-04-07 12:48:37 +0200
commitde26f76e2ec1989713a0353366de64adfc6ee111 (patch)
tree00ecbd6146c4e5fc86666b6b9198e55924689f4d /src/lua.h
parent2b8de8cfc6ae483d6ec16b7609bab64e37d6fc02 (diff)
downloadluajit-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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lua.h b/src/lua.h
index 615e0e36..850bd796 100644
--- a/src/lua.h
+++ b/src/lua.h
@@ -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);
351LUA_API const lua_Number *lua_version (lua_State *L); 351LUA_API const lua_Number *lua_version (lua_State *L);
352LUA_API void lua_copy (lua_State *L, int fromidx, int toidx); 352LUA_API void lua_copy (lua_State *L, int fromidx, int toidx);
353LUA_API lua_Number lua_tonumberx (lua_State *L, int idx, int *isnum);
354LUA_API lua_Integer lua_tointegerx (lua_State *L, int idx, int *isnum);
353 355
354/* From Lua 5.3. */ 356/* From Lua 5.3. */
355LUA_API int lua_isyieldable (lua_State *L); 357LUA_API int lua_isyieldable (lua_State *L);