Managing Resources
In the previous chapter, we recapped the communication mechanisms between Lua and C++. In this chapter, we will learn more about managing resources. Resources can be anything an object uses, such as memory, files, or network sockets.
We will cover the following topics:
- Customizing Lua memory allocation
- Delegating C++ object memory allocation to Lua
- What is RAII?