diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-07-01 16:31:10 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-07-01 16:31:10 -0300 |
commit | 68ee518e816c87dbb376dc38d11d1b47dfe2b53e (patch) | |
tree | 0253714c4b62b29993990db1b68add6f4e36c204 /lua.h | |
parent | 76a73cb2eef71eac3c93e9263443131164ee9fb9 (diff) | |
download | lua-68ee518e816c87dbb376dc38d11d1b47dfe2b53e.tar.gz lua-68ee518e816c87dbb376dc38d11d1b47dfe2b53e.tar.bz2 lua-68ee518e816c87dbb376dc38d11d1b47dfe2b53e.zip |
only tables need `lua_number2int'
Diffstat (limited to 'lua.h')
-rw-r--r-- | lua.h | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lua.h,v 1.143 2002/06/25 19:18:49 roberto Exp roberto $ | 2 | ** $Id: lua.h,v 1.144 2002/06/26 19:28:44 roberto Exp roberto $ |
3 | ** Lua - An Extensible Extension Language | 3 | ** Lua - An Extensible Extension Language |
4 | ** Tecgraf: Computer Graphics Technology Group, PUC-Rio, Brazil | 4 | ** Tecgraf: Computer Graphics Technology Group, PUC-Rio, Brazil |
5 | ** http://www.lua.org mailto:info@lua.org | 5 | ** http://www.lua.org mailto:info@lua.org |
@@ -301,12 +301,6 @@ LUA_API int lua_pushupvalues (lua_State *L); | |||
301 | #define LUA_NUMBER_FMT "%.16g" | 301 | #define LUA_NUMBER_FMT "%.16g" |
302 | #endif | 302 | #endif |
303 | 303 | ||
304 | |||
305 | /* function to convert a lua_Number to int (with any rounding method) */ | ||
306 | #ifndef lua_number2int | ||
307 | #define lua_number2int(i,n) ((i)=(int)(n)) | ||
308 | #endif | ||
309 | |||
310 | /* }====================================================================== */ | 304 | /* }====================================================================== */ |
311 | 305 | ||
312 | 306 | ||