Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!cbosgd!ihnp4!houxm!whuxl!whuxlm!akgua!gatech!seismo!harvard!bbnccv!bbncca!aoa!mbr From: mbr@aoa.UUCP Newsgroups: net.unix-wizards,net.lang.c Subject: Pre-defined pre-processor symbols Message-ID: <429@aoa.UUCP> Date: Mon, 24-Mar-86 19:23:02 EST Article-I.D.: aoa.429 Posted: Mon Mar 24 19:23:02 1986 Date-Received: Wed, 2-Apr-86 03:11:39 EST Reply-To: mbr@aoa.UUCP (Mark Rosenthal) Distribution: net Organization: Adaptive Optics Assoc., Cambridge, Mass. USA Lines: 23 Xref: watmath net.unix-wizards:17424 net.lang.c:8328 Can anybody answer the following questions. Please send mail instead of posting the answers. I will summarize. 1. I know that the C pre-processor pre-defines a few symbols, including __LINE__ and __FILE__, but I have been unable to find this documented in K&R anywhere. Is this a quirk of PCC or is it true of all C compilers? 2. I know that there's also one which tells what machine you're generating code for, but I can't remember its name. 3. Is there a symbol which tells what function you're in? (Hmmmm... seems highly unlikely since the pre-processor wouldn't even know it was looking at a function, but maybe somebody hacked it in some other way.) 4. Are there any other pre-defined symbols? Thanks in advance. -- Mark of the Valley of Roses ...!{decvax,linus,ima,ihnp4}!bbncca!aoa!mbr ...!{wjh12,mit-vax}!biomed!aoa!mbr