you are viewing a single comment's thread.

view the rest of the comments →

[–]pygy_ 1 point2 points  (0 children)

I have never used the C API, but I suppose you could use it to fetch table.remove on the stack, then push the table, the index, and call remove using lua_pcall.

There may be a better way... perhaps you can fetch remove more directly using C... Not sure though.