lua-users home
lua-l archive

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

> Mark Edgar wrote:
> >[...]
> > #define topfile(L)      ((FILE **)luaL_checkudata(L, 1, LUA_FILEHANDLE))
> It this likely to keep working in future versions? Poking around in someone
> else's userdata seems... well... a bit *intrusive* for my liking, really.

Usually you should not poke around in someone else's userdata, unless
invited. In this particular case, the definition of LUA_FILEHANDLE in
a header file is the "invitation".

-- Roberto