Path: utzoo!utgpu!watserv1!watmath!att!att!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!usc!elroy.jpl.nasa.gov!ames!amdahl!pacbell!skivs!jmm From: jmm@skivs.UUCP (Joel M. Miller) Newsgroups: comp.unix.aux Subject: assert() problem Message-ID: <3144@skivs.UUCP> Date: 25 Nov 90 02:19:01 GMT Reply-To: jmm@ski.UUCP (Joel M. Miller) Organization: Smith-Kettlewell Eye Research Institute, San Francisco, CA Lines: 14 In compiling about 20,000 lines of C and Fortran code I originally wrote for another Unix system, I was pleased to run into only one small problem, which might be worth fixing, or at least documenting. The A/UX implementation of assert() as a macro makes it illegal to write things like: assert(fp = fopen(fname, "r")); since the macro adds some double quotes of its own, which then pair up incorrectly with those around the "r". -- Joel M Miller Internet: jmm@skivs.ski.org Smith-Kettlewell Institute Usenet: fernwood!skivs!jmm 2232 Webster St Bitnet: jmm%skivs.ski.org@fernwood.mpk.ca.us San Francisco, CA 94115 Voice: 415/561-1703 Fax: 415/561-1610