{"id":22007718,"url":"https://github.com/sztomi/cpp-static-init-block","last_synced_at":"2025-05-05T23:23:16.537Z","repository":{"id":14845225,"uuid":"17568241","full_name":"sztomi/cpp-static-init-block","owner":"sztomi","description":"Emulating the static initialization blocks of Java in C++","archived":false,"fork":false,"pushed_at":"2014-03-09T16:26:46.000Z","size":100,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-31T00:41:18.260Z","etag":null,"topics":[],"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/sztomi.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}},"created_at":"2014-03-09T16:26:06.000Z","updated_at":"2023-07-25T13:51:07.000Z","dependencies_parsed_at":"2022-09-11T15:41:02.204Z","dependency_job_id":null,"html_url":"https://github.com/sztomi/cpp-static-init-block","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/sztomi%2Fcpp-static-init-block","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sztomi%2Fcpp-static-init-block/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sztomi%2Fcpp-static-init-block/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sztomi%2Fcpp-static-init-block/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sztomi","download_url":"https://codeload.github.com/sztomi/cpp-static-init-block/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252591288,"owners_count":21773061,"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":[],"created_at":"2024-11-30T01:29:02.844Z","updated_at":"2025-05-05T23:23:16.518Z","avatar_url":"https://github.com/sztomi.png","language":"C++","readme":"# Implementing a code generator with libclang\n\nThis repository contains the full source code for my article about\n[emulating Java static initialization blocks in C++](http://szelei.me/cpp-static-init-block).\nPlease refer to the article for details. \n\n## Usage\n\nTo use this in your own project, simply include `src/static_init.h` and you are good to go.\n\n## Building\n\nThe following is required to build this project:\n\n  * A C++11 compliant compiler (or reasonably compliant, probably even MSVC 2010 and older will\n    work.)\n  * Premake4 (http://industriousone.com/premake)\n\n(but actually this is just a header-only library and a couple of files for demonstration).\n\nTo build the project on a \\*nix system, run ./build.sh\n","funding_links":[],"categories":["\u003ca name=\"C%2B%2B\"\u003e\u003c/a\u003eC++"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsztomi%2Fcpp-static-init-block","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsztomi%2Fcpp-static-init-block","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsztomi%2Fcpp-static-init-block/lists"}