...has anyone done a ctypes-like pacakge for Lua?
There is C/Invoke with Lua bindings at http://www.nongnu.org/cinvoke/index.html.
This looks like what I was after, only better :-) Thanks!