diff options
Diffstat (limited to 'lua.h')
-rw-r--r-- | lua.h | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lua.h,v 1.121 2002/02/14 21:40:13 roberto Exp roberto $ | 2 | ** $Id: lua.h,v 1.122 2002/03/07 18:15:10 roberto Exp roberto $ |
3 | ** Lua - An Extensible Extension Language | 3 | ** Lua - An Extensible Extension Language |
4 | ** TeCGraf: Grupo de Tecnologia em Computacao Grafica, PUC-Rio, Brazil | 4 | ** TeCGraf: Grupo de Tecnologia em Computacao Grafica, PUC-Rio, Brazil |
5 | ** e-mail: info@lua.org | 5 | ** e-mail: info@lua.org |
@@ -294,6 +294,11 @@ LUA_API int lua_pushupvalues (lua_State *L); | |||
294 | #define lua_str2number(s,p) strtod((s), (p)) | 294 | #define lua_str2number(s,p) strtod((s), (p)) |
295 | #endif | 295 | #endif |
296 | 296 | ||
297 | /* function to convert a lua_Number to int (with any rounding method) */ | ||
298 | #ifndef lua_number2int | ||
299 | #define lua_number2int(i,n) ((i)=(int)(n)) | ||
300 | #endif | ||
301 | |||
297 | /* }====================================================================== */ | 302 | /* }====================================================================== */ |
298 | 303 | ||
299 | 304 | ||