aboutsummaryrefslogtreecommitdiff
path: root/lua.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2013-05-14 13:00:11 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2013-05-14 13:00:11 -0300
commitb5ec26101fa8d875fd7f8daf81f2f727cdddcc30 (patch)
treed225baa42d940400dc7741b767d27d1c05d60f28 /lua.h
parent36e8771076705d33261a88a3c144967b1840671a (diff)
downloadlua-b5ec26101fa8d875fd7f8daf81f2f727cdddcc30.tar.gz
lua-b5ec26101fa8d875fd7f8daf81f2f727cdddcc30.tar.bz2
lua-b5ec26101fa8d875fd7f8daf81f2f727cdddcc30.zip
new API function 'lua_cvtonum' to convert a value (number or string)
to a number, following the rules of the language to create integers or floats
Diffstat (limited to 'lua.h')
-rw-r--r--lua.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/lua.h b/lua.h
index a41932e9..591c608a 100644
--- a/lua.h
+++ b/lua.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lua.h,v 1.287 2013/04/26 13:07:53 roberto Exp roberto $ 2** $Id: lua.h,v 1.288 2013/04/26 15:39:25 roberto Exp roberto $
3** Lua - A Scripting Language 3** Lua - A Scripting Language
4** Lua.org, PUC-Rio, Brazil (http://www.lua.org) 4** Lua.org, PUC-Rio, Brazil (http://www.lua.org)
5** See Copyright Notice at the end of this file 5** See Copyright Notice at the end of this file
@@ -307,6 +307,8 @@ LUA_API int (lua_next) (lua_State *L, int idx);
307LUA_API void (lua_concat) (lua_State *L, int n); 307LUA_API void (lua_concat) (lua_State *L, int n);
308LUA_API void (lua_len) (lua_State *L, int idx); 308LUA_API void (lua_len) (lua_State *L, int idx);
309 309
310LUA_API int (lua_cvtonum) (lua_State *L, int idx);
311
310LUA_API lua_Alloc (lua_getallocf) (lua_State *L, void **ud); 312LUA_API lua_Alloc (lua_getallocf) (lua_State *L, void **ud);
311LUA_API void (lua_setallocf) (lua_State *L, lua_Alloc f, void *ud); 313LUA_API void (lua_setallocf) (lua_State *L, lua_Alloc f, void *ud);
312 314