What this book covers
Chapter 1, Getting Your C++ Project Lua-Ready, explores how to get and compile Lua source code for use in your own project.
Chapter 2, Lua Fundamentals, provides an introduction to the Lua programming language.
Chapter 3, How to Call Lua from C++, guides you on how to load Lua scripts and call Lua functions from C++.
Chapter 4, Mapping Lua Types to C++, delves into the mechanism of passing arguments to Lua functions and retrieving return values in C++.
Chapter 5, Working with Lua Tables, trains you on how to work with Lua tables in C++.
Chapter 6, How to Call C++ from Lua, breaks down the process of calling C++ code from Lua.
Chapter 7, Working with C++ Types, delves into exporting C++ classes to Lua.
Chapter 8, Abstracting a C++ Type Exporter, guides you on how to build a template class that can export any C++ class to Lua.
Chapter 9, Recapping Lua-C++ Communication Mechanisms, reviews and summarizes the mechanisms to integrate Lua with C++.
Chapter 10, Managing Resources, explores some advanced memory management techniques and resource management principles.
Chapter 11, Multithreading with Lua, enables you to work with Lua in a multithreaded environment.