lua-users home
lua-l archive

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


On Mon, Mar 29, 2010 at 2:27 AM, M Joonas Pihlaja
<jpihlaja@cc.helsinki.fi> wrote:
> On a tangential note I often have a pushstringornil(char const *)
> function which will push nil for a NULL argument and the string
> otherwise.

lua_pushstring() currently does this. In Lua 5.2 (Roberto has
privately confirmed to me) that this will be documented functionality.

-- 
- Patrick Donnelly