Reputation: 2018
Can someone tell me is it possible to somehow call c function or simply wrap it into a lua function WITHOUT building a new module.
Upvotes: 2
Views: 2615
Reputation: 527248
Lua can't call arbitrary C functions - they have to be bound to something in the Lua namespace first. (This is intentional to prevent breaking out of sandboxes in embedded applications.)
Upvotes: 5