XuNeo / luavgl

lua + lvgl = luavgl An optimized lvgl Lua binding
MIT License
68 stars 15 forks source link

feat(rotable): add metatable support to rotable #54

Closed XuNeo closed 3 months ago

XuNeo commented 3 months ago

Since rodata's meta table is already used to fake the normal table operation, we use userdata uservalue[2] to store an optional table as meta table. It's further searched when no match found in rodata's __index method.

Fix bug in rotable_newidx.

XuNeo commented 3 months ago

Requires lua5.4