lua-users home
lua-l archive

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

2011/6/22 liam mail <>:
> Similar to luaL_getmetafield.

This makes me think that maybe lua_[g|s]etuservaluefield(lua_State *L,
int obj)  could be useful to manipulate fields from a userdata's
uservalue table without having to push it on the stack first. I omit
the const char *e parameter for the the function to use the top of the
stack as the index, just like lua_gettable() does.Bbut we already have
lua_getuservalue(), so one should find a different, yet appropriate,
name :-)