XuNeo / luavgl

lua + lvgl = luavgl An optimized lvgl Lua binding
MIT License
70 stars 14 forks source link

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

Closed XuNeo closed 4 months ago

XuNeo commented 4 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 4 months ago

Requires lua5.4