aboutsummaryrefslogtreecommitdiff
path: root/lua.h
diff options
context:
space:
mode:
Diffstat (limited to 'lua.h')
-rw-r--r--lua.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/lua.h b/lua.h
index d391ccb0..34615dd5 100644
--- a/lua.h
+++ b/lua.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lua.h,v 1.97 2001/04/23 16:35:45 roberto Exp roberto $ 2** $Id: lua.h,v 1.98 2001/06/06 18:00:19 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
@@ -292,10 +292,16 @@ LUA_API void lua_pushusertag (lua_State *L, void *u, int tag);
292#define l_charint int 292#define l_charint int
293#endif 293#endif
294 294
295/* function to convert a lua_Number to a string */ 295/*
296** formats for Lua numbers
297*/
298#ifndef LUA_SCAN_NUMBER
299#define LUA_SCAN_NUMBER "%lf"
300#endif
296#ifndef LUA_NUMBER_FMT 301#ifndef LUA_NUMBER_FMT
297#define LUA_NUMBER_FMT "%.16g" 302#define LUA_NUMBER_FMT "%.16g"
298#endif 303#endif
304/* function to convert a lua_Number to a string */
299#ifndef lua_number2str 305#ifndef lua_number2str
300#define lua_number2str(s,n) sprintf((s), l_s(LUA_NUMBER_FMT), (n)) 306#define lua_number2str(s,n) sprintf((s), l_s(LUA_NUMBER_FMT), (n))
301#endif 307#endif