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.
Germany
Slovakia
Canada
Brazil
Singapore
Hungary
Philippines
Mexico
Thailand
Ukraine
Luxembourg
Estonia
Lithuania
Norway
Chile
United States
Great Britain
India
Spain
South Korea
Ecuador
Colombia
Taiwan
Switzerland
Indonesia
Cyprus
Denmark
Finland
Poland
Malta
Czechia
New Zealand
Austria
Turkey
France
Sweden
Italy
Egypt
Belgium
Portugal
Slovenia
Ireland
Romania
Greece
Argentina
Malaysia
South Africa
Netherlands
Bulgaria
Latvia
Australia
Japan
Russia