Skip to content

Implementation of the ISO C11 macro replacement specification.

License

Notifications You must be signed in to change notification settings

momchil-velikov/libmacro

Repository files navigation

libmacro

libmacro is a tiny library implementation of the ISO C11 macro replacement specification. It is suitable for inclusion in IDEs/debuggers, which need to evaluate C/C++ expressions (e.g. in watch windows), based in the macro information in DWARF4 sections.

Building

As simple as:

c++ -c --std=c++11 libmacro.cc

The library comes with testsuite and benchmark. For building these you need to install Google Test (https://github.com/google/googletest) and Google Benchmark (https://github.com/google/benchmark). You may need to add -DGOOGLE_TEST_DIR=<path> and -DGOOGLE_BENCHMARK_DIR=<path> to cmake command line.

Usage

See the testsuite for examples.

Limitations and bugs

No know bugs so far.

Only C locale is supported. C11 universal characters names, wide character and wide string literals are not implemented.

Copyright and license

See file LICENSE

About

Implementation of the ISO C11 macro replacement specification.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published