|
If you have a lot
of them and want to use an automated API generator, building Lua tables ahead
of time will make your code look cleaner. Just have `reg_lut` return the
getter and setter table on the Lua stack then push each closure taking the
upvalue instead of reading the registry.