A personal repo where I push things while I'm learning the Lua C API! Feel free to contribute :)
NOTE: I really think that the Lua C API and this examples can be highly self-explained, BUT I recommend you to always check the Reference Manual to see in detail how every thing works
If you want to build this, you'll need Meson and Lua 5.1 development files and then:
meson . _BUILD
ninja -C _BUILD
And in the _BUILD
folder you'll see the compiled files
Just:
meson test -C _BUILD
I mainly readed the Official Reference Manual but I also saw this:
- Veinin/lua-c-api-tutorial – First steps
- Stack (Wikipedia) – The simple illustration with numbers was really helpful
- Understanding the lua stack – A set of articles I found about the stack
- tylerneylon/lua_api_demo – Here I learned how to use the
lua_newuserdata
function - hertogp/lua-capi-examples – Stack dump example
And finally, thanks to the members of the Telegram Group!
Yes ✔️