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 7, Lua Bridge, we will cover how to use Lua Bridge, a Lua binding framework that removes a lot of the verbose boilerplate code.
United States
United Kingdom
India
Germany
France
Canada
Russia
Spain
Brazil
Australia
Argentina
Austria
Belgium
Bulgaria
Chile
Colombia
Cyprus
Czechia
Denmark
Ecuador
Egypt
Estonia
Finland
Greece
Hungary
Indonesia
Ireland
Italy
Japan
Latvia
Lithuania
Luxembourg
Malaysia
Malta
Mexico
Netherlands
New Zealand
Norway
Philippines
Poland
Portugal
Romania
Singapore
Slovakia
Slovenia
South Africa
South Korea
Sweden
Switzerland
Taiwan
Thailand
Turkey
Ukraine