{"id":50820762,"url":"https://github.com/laserattack/luajit-inline","last_synced_at":"2026-06-13T13:34:55.765Z","repository":{"id":309066514,"uuid":"1035065597","full_name":"laserattack/luajit-inline","owner":"laserattack","description":"Allows you to inline the C code in the LuaJIT code","archived":false,"fork":false,"pushed_at":"2025-08-09T19:36:14.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-13T13:34:49.098Z","etag":null,"topics":["lua","luajit","luajit-ffi"],"latest_commit_sha":null,"homepage":"","language":"Lua","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/laserattack.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,"zenodo":null}},"created_at":"2025-08-09T15:26:37.000Z","updated_at":"2025-08-09T19:36:18.000Z","dependencies_parsed_at":"2025-08-09T17:33:12.174Z","dependency_job_id":"12d3c89d-82b1-4759-b7c5-9ac7b8792ade","html_url":"https://github.com/laserattack/luajit-inline","commit_stats":null,"previous_names":["laserattack/lua-inline"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/laserattack/luajit-inline","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laserattack%2Fluajit-inline","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laserattack%2Fluajit-inline/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laserattack%2Fluajit-inline/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laserattack%2Fluajit-inline/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/laserattack","download_url":"https://codeload.github.com/laserattack/luajit-inline/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laserattack%2Fluajit-inline/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34286975,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-13T02:00:06.617Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["lua","luajit","luajit-ffi"],"created_at":"2026-06-13T13:34:55.164Z","updated_at":"2026-06-13T13:34:55.760Z","avatar_url":"https://github.com/laserattack.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LuaJIT Inline\n\nA very simple small module that allows you to inline C code in LuaJIT code\n\n## Deps\n\nLuaJIT, GCC\n\n## Example\n\n```lua\nlocal inline = require(\"inline\")\n\ninline[[\n#include \u003cstdio.h\u003e\n#include \u003cstdlib.h\u003e\n#include \u003csignal.h\u003e\n\nvoid my_signal_handler(int signum) {\n    printf(\"Custom handler received signal: %d\\n\", signum);\n    exit(1);\n}\n\nvoid setup_signal_handler() {\n    signal(SIGINT, my_signal_handler);\n}\n\nint add_numbers(int a, int b) {\n    return a + b;\n}\n\nvoid print_message(const char* msg) {\n    printf(\"Message: %s\\n\", msg);\n}\n]]\n\nprint(add_numbers(1, 2)) --\u003e 3\nprint_message(\"hello from C!\") --\u003e Message: hello from C!\n\nsetup_signal_handler()\nprint(\"press Ctrl+C to exit\")\nwhile true do end\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaserattack%2Fluajit-inline","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flaserattack%2Fluajit-inline","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaserattack%2Fluajit-inline/lists"}