Comment by sanxiyn 3 years ago Which preprocessor do you recommend for writing C? 2 comments sanxiyn Reply bsder 3 years ago None.Use an actual different language. Ada, Rust, Zig, D, Lisp/Scheme/Racket, Tcl, Forth, etc. ... something other than C.Don't preprocess C into a slightly broken other language that you wish it were. Use C as C, or use something else. jimbob45 3 years ago https://stackoverflow.com/a/3685576There’s one approach. I wouldn’t personally recommend using macros outside of include guards and file inclusion. Still, if you need more functionality, the methods exist.
bsder 3 years ago None.Use an actual different language. Ada, Rust, Zig, D, Lisp/Scheme/Racket, Tcl, Forth, etc. ... something other than C.Don't preprocess C into a slightly broken other language that you wish it were. Use C as C, or use something else.
jimbob45 3 years ago https://stackoverflow.com/a/3685576There’s one approach. I wouldn’t personally recommend using macros outside of include guards and file inclusion. Still, if you need more functionality, the methods exist.
None.
Use an actual different language. Ada, Rust, Zig, D, Lisp/Scheme/Racket, Tcl, Forth, etc. ... something other than C.
Don't preprocess C into a slightly broken other language that you wish it were. Use C as C, or use something else.
https://stackoverflow.com/a/3685576
There’s one approach. I wouldn’t personally recommend using macros outside of include guards and file inclusion. Still, if you need more functionality, the methods exist.