lua-users home
lua-l archive

LUA_NUMBER to float

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


 I think I've got this right, but it seems there have been a lot of changes
since 5.0 so I want to check. To change over Lua to use floats I changed
the following lines in luaconf.h:
#define LUA_NUMBER		float
#define LUA_NUMBER_SCAN		"%f"
#define LUA_NUMBER_FMT		"%g"
#define LUA_UACNUMBER		float
#define LUSER_ALIGNMENT_T	union { float u; void *s; long l; }
 Did I miss anything?
 Tom Spilman
 Co-owner | Programmer
 www.sickheadgames.com

AltStyle によって変換されたページ (->オリジナル) /