{"id":23268432,"url":"https://github.com/miqueas/lua-c-api-examples","last_synced_at":"2025-08-21T00:32:16.184Z","repository":{"id":135995108,"uuid":"408185126","full_name":"Miqueas/Lua-C-API-Examples","owner":"Miqueas","description":"Some C code I wrote while learning the Lua C API","archived":false,"fork":false,"pushed_at":"2024-04-29T03:52:08.000Z","size":39,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-29T06:54:42.907Z","etag":null,"topics":["api","c","lua","lua51","lua52","lua53"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Miqueas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-09-19T16:57:44.000Z","updated_at":"2024-04-29T03:52:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"77d37b1f-e9e5-4c74-a1f4-5bea53ff2f0f","html_url":"https://github.com/Miqueas/Lua-C-API-Examples","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Miqueas%2FLua-C-API-Examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Miqueas%2FLua-C-API-Examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Miqueas%2FLua-C-API-Examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Miqueas%2FLua-C-API-Examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Miqueas","download_url":"https://codeload.github.com/Miqueas/Lua-C-API-Examples/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230471222,"owners_count":18231201,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","c","lua","lua51","lua52","lua53"],"created_at":"2024-12-19T17:18:36.968Z","updated_at":"2024-12-19T17:18:37.617Z","avatar_url":"https://github.com/Miqueas.png","language":"C","readme":"# Lua-C-API\n\nA personal repo where I push things while I'm learning the Lua C API! Feel free to contribute :)\n\n\u003e **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\n\n## Building\n\nIf you want to build this, you'll need Meson and Lua 5.1 development files and then:\n\n```\nmeson . _BUILD\nninja -C _BUILD\n```\n\nAnd in the `_BUILD` folder you'll see the compiled files\n\n## Running tests\n\nJust:\n\n```\nmeson test -C _BUILD\n```\n\n## References\n\nI mainly readed the [Official Reference Manual][LuaManual] but I also saw this:\n\n * [Veinin/lua-c-api-tutorial][lua-c-api-tutorial] \u0026ndash; _First steps_\n * [Stack (Wikipedia)][StackWikipedia] \u0026ndash; _The simple illustration with numbers was really helpful_\n * [Understanding the lua stack][UnderstandingStack] \u0026ndash; _A set of articles I found about the stack_\n * [tylerneylon/lua_api_demo][api_demo_repo] \u0026ndash; _Here I learned how to use the `lua_newuserdata` function_\n * [hertogp/lua-capi-examples][lua-capi-examples] \u0026ndash; _Stack dump example_\n\nAnd finally, thanks to the members of the [Telegram Group][TelegramGroup]!\n\n## Why Lua 5.1?\n\nYes :heavy_check_mark:\n\n[StackWikipedia]: https://en.wikipedia.org/wiki/Stack_(abstract_data_type)\n[UnderstandingStack]: https://szpg1108.wordpress.com/2013/08/07/understanding-the-lua-stack-pt-1-the-basics/\n[LuaManual]: https://www.lua.org/manual/5.1/manual.html#3\n[api_demo_repo]: https://github.com/tylerneylon/lua_api_demo\n[lua-c-api-tutorial]: https://github.com/Veinin/lua-c-api-tutorials\n[lua-capi-examples]: https://github.com/hertogp/lua-capi-examples\n[TelegramGroup]: https://t.me/LuaLang","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiqueas%2Flua-c-api-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmiqueas%2Flua-c-api-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiqueas%2Flua-c-api-examples/lists"}