Changeset View
Changeset View
Standalone View
Standalone View
stand/liblua/luaconf.h
Show First 20 Lines • Show All 645 Lines • ▼ Show 20 Lines | |||||
** implementation. | ** implementation. | ||||
*/ | */ | ||||
#if !defined(LUA_USE_C89) | #if !defined(LUA_USE_C89) | ||||
#define lua_strx2number(s,p) lua_str2number(s,p) | #define lua_strx2number(s,p) lua_str2number(s,p) | ||||
#endif | #endif | ||||
/* | /* | ||||
@@ lua_pointer2str converts a pointer to a readable string in a | |||||
** non-specified way. | |||||
*/ | |||||
#define lua_pointer2str(buff,sz,p) l_sprintf(buff,sz,"%p",p) | |||||
/* | |||||
@@ lua_number2strx converts a float to an hexadecimal numeric string. | @@ lua_number2strx converts a float to an hexadecimal numeric string. | ||||
** In C99, 'sprintf' (with format specifiers '%a'/'%A') does that. | ** In C99, 'sprintf' (with format specifiers '%a'/'%A') does that. | ||||
** Otherwise, you can leave 'lua_number2strx' undefined and Lua will | ** Otherwise, you can leave 'lua_number2strx' undefined and Lua will | ||||
** provide its own implementation. | ** provide its own implementation. | ||||
*/ | */ | ||||
#if !defined(LUA_USE_C89) | #if !defined(LUA_USE_C89) | ||||
#define lua_number2strx(L,b,sz,f,n) \ | #define lua_number2strx(L,b,sz,f,n) \ | ||||
((void)L, l_sprintf(b,sz,f,(LUAI_UACNUMBER)(n))) | ((void)L, l_sprintf(b,sz,f,(LUAI_UACNUMBER)(n))) | ||||
▲ Show 20 Lines • Show All 151 Lines • Show Last 20 Lines |