Skip to content

sztomi/cpp-static-init-block

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Emulating the static initialization blocks of Java in C++

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published