jovanbulck / jsh

A basic UNIX shell implementation in C
GNU General Public License v3.0
30 stars 10 forks source link

Wrapper macro for printdebug statements #13

Open jovanbulck opened 9 years ago

jovanbulck commented 9 years ago

Maybe write a wrapper macro for printdebug statements so that the pre-compiler only includes the statements when DEBUG=1

See https://en.wikipedia.org/wiki/Variadic_macro and http://stackoverflow.com/questions/679979/how-to-make-a-variadic-macro-variable-number-of-arguments