Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!dali.cs.montana.edu!uakari.primate.wisc.edu!aplcen!unmvax!pprg.unm.edu!topgun!mustang!nntp-server.caltech.edu!manning From: manning@nntp-server.caltech.edu (Evan Marshall Manning) Newsgroups: comp.os.msdos.programmer Subject: Re: #define thisneatmacro Message-ID: <1990Oct18.235709.516@nntp-server.caltech.edu> Date: 18 Oct 90 23:57:09 GMT References: <9286@helios.TAMU.EDU> Organization: California Institute of Technology, Pasadena Lines: 17 ctl8588@rigel.tamu.edu (LAUGHLIN, CHET) writes: #define drawch(A,B,C) do {gotoxy(A,B); cput(C);} while (0) is a standard hack. Another is: #define drawch(A,B,C) gotoxy(A,B), cput(C) (You'll probably get a million similar answers, but better than none....) *************************************************************************** Your eyes are weary from staring at the CRT for so | Evan M. Manning long. You feel sleepy. Notice how restful it is | is to watch the cursor blink. Close your eyes. The |manning@gap.cco.caltech.edu opinions stated above are yours. You cannot | manning@mars.jpl.nasa.gov imagine why you ever felt otherwise. | gleeper@tybalt.caltech.edu