Emulating the static initialization blocks of Java in C++
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
LICENSE
README.md
build.sh
premake4.lua

README.md

Implementing a code generator with libclang

This repository contains the full source code for my article about emulating Java static initialization blocks in C++. Please refer to the article for details.

Usage

To use this in your own project, simply include src/static_init.h and you are good to go.

Building

The following is required to build this project:

(but actually this is just a header-only library and a couple of files for demonstration).

To build the project on a *nix system, run ./build.sh