lua-users home
lua-l archive

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


A documentation suggestion:

  int luaL_newlibtable (lua_State *L, const luaL_Reg *l);

  It is implemented as a macro. The array l must be the actual array, not
  a pointer to it.

It would be better to write the prototype as below to emphasize this fact.

  int luaL_newlibtable (lua_State *L, const luaL_Reg l[]);

Tony.
-- 
f.anthony.n.finch  <dot@dotat.at>  http://dotat.at/
North Utsire, South Utsire: Southwesterly veering westerly 5 to 7,
occasionally gale 8 in North Utsire. Moderate or rough. Showers. Good.