"wtfC!?" is a playful language extension for C and C++ that introduces unconventional and humorous macros to replace common programming constructs. This project aims to add a touch of creativity and humor to C/C++ programming, offering an alternative way to write code that might appeal to developers looking for a unique coding experience.
wtfC!? was made for fun, thus, do not use it for professional use. But yeah, you have to be insane enough to use this on serious projects.
Usage
import <stdio.h>
main(i32 argc, string argv[])
begin
nothing;
i32* test = make(i32, 10);
test[9] = 100;
echo(test[9]);
echo("\nHello, damn world!\r\n");
for ever;
end
![]()
Illustration by Lady Selene.
If you are using the macro import, you should preprocess your source file first before compiling. For example:
gcc -x c -E -include src/wtfc.wtfch -o full_example_prep.c examples/full_example.wtfc
gcc -w -o full_example full_example_prep.c && rm full_example_prep.c
./full_example
You can skip the pre-preprocessing phase if you don't use the import macro for file inclusion.

