return 0;

SBC - Slightly Better C

SBC is a C preprocessor that makes C slightly less annoying to program in. It takes in a C code file, imports other code files, and outputs a combined C code file which you can then compile with a compiler of your choice.


Current status

There's a lot of things I want in a language, but making a whole language is too much effort for me. However, making a preprocessor like this has some issues too, notably the fact that C macros can mangle the code. Unless SBC parses and processes macros completely (it doesn't), it's impossible to understand what types and functions exist in the program and what they look like.

Here's some ideas that I am considering.
Things that might work at least partially, but may be messy because SBC would have to analyze the code a bit.
Notable things that I notably want but that are too difficult unless I come up with some genius trick.

Download

SBC comes with source code in case you'd like to tweak it for yourself, or port it to a different operating system or whatever.

Slightly Better C 0.1

Windows   Download   Slightly_Better_C_0-1.zip - 74 KB