mirror of https://github.com/rusefi/lua.git
comment about compatibility-only functions
This commit is contained in:
parent
566758de79
commit
d1c0efdb7d
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
** $Id: lauxlib.h,v 1.111 2010/11/10 18:05:36 roberto Exp roberto $
|
** $Id: lauxlib.h,v 1.112 2010/11/16 17:43:29 roberto Exp roberto $
|
||||||
** Auxiliary functions for building Lua libraries
|
** Auxiliary functions for building Lua libraries
|
||||||
** See Copyright Notice in lua.h
|
** See Copyright Notice in lua.h
|
||||||
*/
|
*/
|
||||||
|
@ -124,8 +124,6 @@ LUALIB_API void (luaL_requiref) (lua_State *L, const char *modname,
|
||||||
|
|
||||||
#define luaL_opt(L,f,n,d) (lua_isnoneornil(L,(n)) ? (d) : f(L,(n)))
|
#define luaL_opt(L,f,n,d) (lua_isnoneornil(L,(n)) ? (d) : f(L,(n)))
|
||||||
|
|
||||||
#define luaL_register(L,n,l) (luaL_openlib(L,(n),(l),0))
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** {======================================================
|
** {======================================================
|
||||||
|
@ -162,11 +160,15 @@ LUALIB_API char *(luaL_buffinitsize) (lua_State *L, luaL_Buffer *B, size_t sz);
|
||||||
/* }====================================================== */
|
/* }====================================================== */
|
||||||
|
|
||||||
|
|
||||||
|
/* compatibility with old module system */
|
||||||
|
|
||||||
LUALIB_API void (luaL_pushmodule) (lua_State *L, const char *modname,
|
LUALIB_API void (luaL_pushmodule) (lua_State *L, const char *modname,
|
||||||
int sizehint);
|
int sizehint);
|
||||||
LUALIB_API void (luaL_openlib) (lua_State *L, const char *libname,
|
LUALIB_API void (luaL_openlib) (lua_State *L, const char *libname,
|
||||||
const luaL_Reg *l, int nup);
|
const luaL_Reg *l, int nup);
|
||||||
|
|
||||||
|
#define luaL_register(L,n,l) (luaL_openlib(L,(n),(l),0))
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue