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
- Host: GitHub
- URL: https://github.com/not-nik/preprocessor
- Owner: Not-Nik
- License: unlicense
- Created: 2019-04-10T19:08:55.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-07-30T03:02:02.000Z (almost 6 years ago)
- Last Synced: 2025-03-18T05:08:57.084Z (over 1 year ago)
- Language: C++
- Size: 69.3 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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!