[net.lang.c] A cute macro

steven@qubix.UUCP (Steven Maurer) (05/15/84)

References:

    Having trouble remembering to break out of a case statement?

    Try this:

    #define when break;case
    #define otherwise break;default

    Thus you can write

	case (I) {
	    when  'a': 
	    when  'b': 
	    when  'c': 
	    otherwise:
	    }

    Steven Maurer