Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1a 7/7/83; site rlgvax.UUCP Path: utzoo!linus!security!genrad!decvax!harpo!seismo!rlgvax!guy From: guy@rlgvax.UUCP (Guy Harris) Newsgroups: net.lang.c Subject: Re: "__LINE__ and __FILE__ - (nf)" Message-ID: <1359@rlgvax.UUCP> Date: Wed, 2-Nov-83 11:56:52 EST Article-I.D.: rlgvax.1359 Posted: Wed Nov 2 11:56:52 1983 Date-Received: Sun, 6-Nov-83 09:49:34 EST References: <201@ihlpf.UUCP> Organization: CCI Office Systems Group, Reston, VA Lines: 13 __LINE__ and __FILE__ are evaluated by the pre-processor (they contain the name of the source line and file, and not the line number of the file actually handed to the compiler, so the pre-processor knows enough to give them values). They were stuck into the pre-processor when it was rewritten (with a significant speedup) by John Reiser, and have been in every version of the preprocessor since V7. They are not documented, however, until System V. I'd use them anyway, although some compilers may not use the Bell preprocessor and may not have implemented them; if they don't implement them, they're going to have trouble with a lot of code (including the "assert" macro) so they should implement them. Guy Harris {seismo,ihnp4,allegra}!rlgvax!guy