[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: Using Lua for Video Games
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Mon, 25 Sep 2000 20:13:17 -0300 (EST)
>that's one of the things i would like to see in the future, an easy way of switching from double to
>floats.
This is trivial. Just look at config. It's a one-line change in config:
# Lua uses double for numbers. To change this, uncomment one of the lines below.
#NUMBER= -DLUA_NUM_TYPE=double
#NUMBER= -DLUA_NUM_TYPE=float
#NUMBER= -DLUA_NUM_TYPE=long
If you don't use make, just #define LUA_NUM_TYPE float, either in a compiler
setting box or directly in lua.h.
--lhf