lua-users home
lua-l archive

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


 Hi all,
We are using extensivly the luaL_Reg structure to handle methods to be applied on C objects. One drawback (as far as i know), is that the structure does not allow the storage of additionnal datas that can be used by callbacks for example
So ideally, would it be possible to have something like this :

typedef struct luaL_Reg {
  const char *name;
  lua_CFunction func;
 void  *udata;
} luaL_Reg;

Rgdsn Sylvain.

--
=================================
Sylvain FABRE
sylvain.fabre@inpixal.com
Fixe: 09 72 11 30 24
Mobile: 06 30 12 72 34
Fax : 09 72 11 10 71
=================================