Summary

In this chapter, we covered how to use the C API to embed Lua into C applications. This allowed us to call Lua functions from C, call C functions from Lua, and to interact between the two languages. At the core of this Lua to C interaction is the Lua stack. The only drawback to Lua's C API is that it can be rather verbose at times. In Chapter 7Lua Bridge, we will cover how to use Lua Bridge, a Lua binding framework that removes a lot of the verbose boilerplate code.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.144.31.163