Part 2 – Calling Lua from C++
Now that you are familiar with setting up C++ projects with Lua, you will start to learn how to call Lua code from C++.
You will start to implement a general C++ utility class to load and execute Lua code. First, you will learn how to load Lua scripts and call a Lua function. Then, you will explore how to pass arguments to Lua functions and handle return values. Finally, you will dig deeper to master working with Lua tables.
This part comprises the following chapters:
- Chapter 3, How to Call Lua from C++
- Chapter 4, Mapping Lua Types to C++
- Chapter 5, Working with Lua Tables