[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: LUA_UACNUMBER ?
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Tue, 21 Dec 2004 00:23:00 -0200
> "result of a `usual argument conversion' over lua_Number" - what does
> that mean?
It means the conversion done in varags C functions.
This is used in lua_pushvfstring and lua_pushfstring, the only varargs
functions in the API.
> If I want to run Lua with luaNumber=float, should this be redefined,
> too?
Probably not, because floats are promoted to doubles in varargs, right?
But if you change luaNumber to int or long, then LUA_UACNUMBER should be
redefined accordingly.
--lhf