lua-users home
lua-l archive

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


> In Lua 5.2.4, there are functions (implemented as macros) in luaconf.h:
> 
> luai_writestring
> luai_writestring(s,l)
> luai_writeline()
> luai_writestringerror
> luai_writestringerror
> 
> They are not in Lua 5.3.5. Instead, there are functions with similar
> names but starting lua_ instead of luai_.
> 
> Can one use the ones without the "i" as a drop-in replacement whan
> converting from Lua 5.2 to 5.3?

Probably yes.

The 'luai' in the former names meant they were "internal" definitions,
not intended for use outside the Lua code. As they remain undocumented,
they are still not part of the official API.

-- Roberto