Bridge to Lua's C API.