An open API service indexing awesome lists of open source software.

https://github.com/not-nik/preprocessor

A C-thing based on preprocessor directives
https://github.com/not-nik/preprocessor

Last synced: over 1 year ago
JSON representation

A C-thing based on preprocessor directives

Awesome Lists containing this project

README

          

# Preprocessor
A C-thing based on preprocessor directives
Use with C++ is even more exiting tho

## How to use
Look into the Tests directory for a basic usage example

## How to build
Simple cmake action: `cmake . && make install`

## Questions and help
If you need help... You won't need any it's friggin' defines.

Q: Is this a serious project

A: No, it's obviously a meme

Q: Updates?

A: Maybe. Feel free to add some shit via PR's

Q: When should I use this?

A: ~~Never. Using this is a shit idea. It uses fucking void pointers for every single variable.~~
As there are no weird void pointers anymore and I made pretty nice error outputs, this may actually be usable.
Try it if you are familiar with C and aware that this can and probably will cause cancer somewhere in your body.

Q: I don't quite get what my code does

A: You actually made code with this? However; most systems feature a `cpp` command that applies the C preprocessor.
Simply type `cpp ` if you installed this project or `cpp -Ipath/to/project/root/include `
This will output how your code looks like with all the macros applied. Keep in mind that all the types are typedefs
and `cpp` will **not** resolve them.

Q: I got another question!

A: Good for you. Bake yourself an icecream!