Summary
In this chapter, we implemented a Lua executor. Not only can it load and execute Lua scripts, but it can also call specific Lua functions. We also learned how to get and set Lua global variables. During the course of the chapter, we explained the Lua stack.
Please take a moment to reflect on how the Lua stack changes during the process of calling a Lua function.
In the next chapter, we will continue to improve this Lua executor and work on Lua data types and C++ data type mappings.