lua_State 中放的是 lua 虚拟机中的环境表、注册表、运行堆栈、虚拟机的上下文等数据。lua和c++之间函数的参数传递和函数返回都是通过栈来实现的。
https://my.oschina.net/xlplbo/blog/314956
https://blog.csdn.net/chenjiayi_yun/article/details/24304607
http://geekluo.com/contents/2014/04/12/6-lua-state-structure.html