axmol/extensions/scripting/lua-bindings/lua-cjson/fpconv.h

32 lines
588 B
C

/* Lua CJSON floating point conversion routines */
/* Buffer required to store the largest string representation of a double.
*
* Longest double printed with %.14g is 21 characters long:
* -1.7976931348623e+308 */
# define FPCONV_G_FMT_BUFSIZE 32
#ifdef __cplusplus
extern "C" {
#endif
#ifdef USE_INTERNAL_FPCONV
static inline void fpconv_init()
{
/* Do nothing - not required */
}
#else
extern void fpconv_init();
#endif
extern int fpconv_g_fmt(char*, double, int);
extern double fpconv_strtod(const char*, char**);
#ifdef __cplusplus
}
#endif
/* vi:ai et sw=4 ts=4:
*/