Documentation: lua_getiuservalue

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Documentation: lua_getiuservalue

Sebastian Steinhauer

I have just a small suggestion for enhancing the documentation for the lua_getiuservalue / lua_setiuservalue functions. The text states it will operate on the n-th value but it’s not mentioned if the counting starts at 1 or 0. Because it is Lua you can assume 1 and you can also check the compatibility macro lua_getuservalue to see that 1 is the first value. But it would be nice to have this explicitly in the documentation as well.

Thank you in advance