lua-users home
lua-l archive

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

On Tue, Nov 16, 2010 at 8:15 AM, Luiz Henrique de Figueiredo
<> wrote:
> All feedback welcome. Thanks.

o luaL_prepbuffsize, luaL_pushresultsize, luaL_buffinitsize,
luaL_pushmodule, luaL_openlib, luaL_newlibtable, luaL_findtable
o Undocumented and unknown purpose at the end of lauxlib.h:

/* compatibility with ref system */

/* pre-defined references */
#define LUA_NOREF       (-2)
#define LUA_REFNIL      (-1)

#define lua_ref(L,lock) ((lock) ? luaL_ref(L, LUA_REGISTRYINDEX) : \
      (lua_pushstring(L, "unlocked references are obsolete"), lua_error(L), 0))

#define lua_unref(L,ref)        luaL_unref(L, LUA_REGISTRYINDEX, (ref))

#define lua_getref(L,ref)       lua_rawgeti(L, LUA_REGISTRYINDEX, (ref))

#define luaL_reg    luaL_Reg

- Patrick Donnelly