lua-users home
lua-l archive

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

> "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.