lua-users home
lua-l archive

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


If I have a C function called by Lua. It has an upvalue and I'd like
to change it's value. Possible?

   static int closure_that_has_upvalues( lua_State* L )
   {
       ...
       // how can I change the value of, say, the upvalue at
lua_upvalueindex(1)?