#ifdef NOT_C # skip C code for Perl, Ruby and Bash false && $skipme = < /* C */ int main (int argc, char **argv) { printf ("Hello, world!\n"); return 0; } #ifdef NOT_C END # For Perl and Ruby [ ] means an array/vector, which is true, but for # Bash it means to evaluate the expression which is false so the # command is skipped [ 1 == 2 ] && \ ( print "Hello, world!\n" ); # For Bash, the arguments to eval are concatenated and given to the # true command and so are ignored, but for Perl and Ruby the 'unless' # part is a separate clause which causes the whole eval command to be # skipped eval 'echo "Hello, world!" ; true' unless 1; #endif