Import stripped variant of Lua AutoC with minor edits.
Import stripped variant of Lua AutoC with minor edits.