{"id":13830811,"url":"https://github.com/eliaskosunen/libcppffi","last_synced_at":"2025-07-09T12:31:41.214Z","repository":{"id":109496933,"uuid":"86580150","full_name":"eliaskosunen/libcppffi","owner":"eliaskosunen","description":"C++ bindings over libffi","archived":true,"fork":false,"pushed_at":"2017-05-09T16:53:38.000Z","size":58,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-08-04T10:04:02.889Z","etag":null,"topics":["cplusplus","ffi","libffi"],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eliaskosunen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2017-03-29T12:36:01.000Z","updated_at":"2024-08-04T10:04:06.371Z","dependencies_parsed_at":"2023-04-25T04:47:00.407Z","dependency_job_id":null,"html_url":"https://github.com/eliaskosunen/libcppffi","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/eliaskosunen%2Flibcppffi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eliaskosunen%2Flibcppffi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eliaskosunen%2Flibcppffi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eliaskosunen%2Flibcppffi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eliaskosunen","download_url":"https://codeload.github.com/eliaskosunen/libcppffi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225539534,"owners_count":17485347,"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":["cplusplus","ffi","libffi"],"created_at":"2024-08-04T10:01:09.306Z","updated_at":"2024-11-20T11:31:23.499Z","avatar_url":"https://github.com/eliaskosunen.png","language":"C++","readme":"# libcppffi\n\n[![Build Status](https://travis-ci.org/eliaskosunen/libcppffi.svg?branch=master)](https://travis-ci.org/eliaskosunen/libcppffi)\n[![Coverage Status](https://coveralls.io/repos/github/eliaskosunen/libcppffi/badge.svg?branch=master)](https://coveralls.io/github/eliaskosunen/libcppffi?branch=master)\n\nHeader-only templated C++ wrapper over the C library [libffi](https://github.com/libffi/libffi)\n\nWORK IN PROGRESS. It's buggy and lacks features. There isn't any documentation yet.\n\nEssentially a zero-cost abstraction that gives you strong type-safety.\n\n## Example\n\n```cpp\n#include \u003ccppffi.h\u003e\n#include \u003ciostream\u003e\n\nint foo()\n{\n    return 42;\n}\n\nvoid bar(float f)\n{\n    std::cout \u003c\u003c f \u003c\u003c '\\n';\n}\n\nint main()\n{\n    std::cout \u003c\u003c ffi::call(foo) \u003c\u003c '\\n';\n    ffi::call(bar, 3.14f);\n\n    ffi::cif\u003cint()\u003e foo_cif;\n    auto foo_call = foo_cif.bind(foo);\n    std::cout \u003c\u003c foo_call() \u003c\u003c '\\n';\n}\n```\n\n## License\n\nlibcppffi is licensed under the MIT license.\n\nCopyright 2017 Elias Kosunen\n\n","funding_links":[],"categories":["C++"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feliaskosunen%2Flibcppffi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feliaskosunen%2Flibcppffi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feliaskosunen%2Flibcppffi/lists"}