I'm a little lost, but if possible, separate your C functions from Lua functions that use those C functions, then proceed to interact with Lua. this enables us to potentially test C functions in isolation in the future separate from Lua runtime